diff --git a/src/components/Map/arcgisMap.vue b/src/components/Map/arcgisMap.vue index 910e58f..028986c 100644 --- a/src/components/Map/arcgisMap.vue +++ b/src/components/Map/arcgisMap.vue @@ -179,6 +179,7 @@ center: [116.597, 28.24], // 初始显示的地图中心点,经纬度 zoom: 3 // 当前地图缩放等级 }) + this.view.ui._removeComponents(['zoom']) const that = this this.view.on('click', function(event) { @@ -217,8 +218,10 @@ query.units = 'meters' query.returnGeometry = true query.outFields = ['BGID', 'COMMUID', 'COMMUNAME'] + console.log(that.layers.dx2wGrid) that.layers.dx2wGrid.queryFeatures(query) .then(function(response) { + console.log(response) const result = response.features[0].attributes // 赋值 @@ -334,7 +337,7 @@ id: 'dxbjMph' }) this.layers.dx2wGrid = new this.esriObj.FeatureLayer({ - url: serverConfig.mapUrlBase + '/1', + url: serverConfig.mapUrlBase + '/6', id: 'gridLayer' }) @@ -513,8 +516,8 @@