src/components/LayerController/service/LayerFactory.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/components/LayerController/service/WmsLayerService.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/components/LayerController/service/LayerFactory.js
@@ -17,6 +17,7 @@ this.layersLogic = {} this.minZoomLayers = {} this.wmsLayers = [] this.clickSwitch = false } init (layerConfig) { src/components/LayerController/service/WmsLayerService.js
@@ -76,6 +76,9 @@ clickListener () { window.map.on('click', (e) => { if (window.layerFactory.clickSwitch) { return } this.featureGroup.clearLayers() var point = this.map.latLngToContainerPoint(e.latlng, this.map.getZoom()) var size = this.map.getSize()