src/components/helpers/BasemapHelper.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/components/helpers/BasemapHelper.js
@@ -53,23 +53,15 @@ */ showBasemap = (code, showAnnotation, isHideOthers = true) => { const basemap = this.basemapMap.get(code) if (isHideOthers) { this.basemapLayerGroup.clearLayers() } setTimeout(() => { // const layer = this.basemapLayerGroup.hasLayer(basemap.layer) // if (!layer) { this.basemapLayerGroup.addLayer(basemap.layer) // } if (showAnnotation) { // if() this.basemapLayerGroup.addLayer(basemap.annotation) } else { this.basemapLayerGroup.removeLayer(basemap.annotation) } }, 300) } /**