src/components/LayerController/service/LayerFactory.js
@@ -17,6 +17,7 @@ this.layersLogic = {} this.minZoomLayers = {} this.wmsLayers = [] this.clickSwitch = true // 图层点击弹窗开关 } init (layerConfig) { @@ -186,7 +187,7 @@ point = coordinates[parseInt(coordinates.length / 2)][0] break } window.map.flyTo(point.reverse(), 15) window.map.flyTo(point.reverse(), 17) code && this.openPopup(code, feature.id) }