当前位置: 首页 > Web前端 > vue.js

arcgisforjs缓冲区分析

时间:2023-03-31 23:19:33 vue.js

this.view.on('click',(evt)=>{letlayer=this.map.findLayerById('layerbjx')//创建查询对象letquery=layer.createQuery()//将点击的点放入查询对象query.geometry={type:'point',longitude:evt.mapPoint.longitude,latitude:evt.mapPoint.latitude}//设置缓冲区query.distance=6//Set查询方法(intersect)query.spatialRelationship='intersects'layer.queryFeatures(query).then((res)=>{//获取要素对象console.log(res.features)})})