src/components/helpers/ServiceLayerHelper.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/components/helpers/ServiceLayerHelper.js
@@ -16,13 +16,16 @@ this.tileLayersTileArray = [] // 初始的Tile集 this.tileLayersWMSArray = [] // 初始的WMS集 this.layerArray = {} // key为配置的code,加载的图层对象, this.layerConfig = {} this.regex = /\{(.+?)\}/g // 匹配{} this.popupComp = null } getTileLayer (code) { return this.loadedLayersMap.get(code) } getByLayerId (layerId) { } initDisplayZoom (layerConfig) { @@ -114,6 +117,8 @@ var layer = that.loadGeojson(res, item) that.layerArray[code] = layer }) } else { that.layerArray[code].addTo(that.map) } }