| | |
| | | this.L = options.L |
| | | this.tileLayersMap = new Map() |
| | | this.tileLayersWMSArray = [] |
| | | this.tileLayerWmslayerGroup = L.layerGroup().addTo(this.map) |
| | | this.tileLayersWMTSArray = [] |
| | | this.tileLayersTileArray = [] |
| | | this.mapConfig = {} |
| | |
| | | layer.config = config |
| | | |
| | | if (isAddToMap) { |
| | | layer.addTo(this.map) |
| | | layer.addTo(this.tileLayerWmslayerGroup) |
| | | } |
| | | this.tileLayersMap.set(options.code, layer) |
| | | this.tileLayersWMSArray.push(layer) |
| | |
| | | getWMSConfig (code) { |
| | | const mc = this.mapConfig |
| | | for (let i = 0, len = mc.mapConfig.ServiceLayers.length; i < len; ++i) { |
| | | if (code == mc.mapConfig.ServiceLayers[i].code && mc.mapConfig.ServiceLayers[i].type === 'wms') { |
| | | if (code === mc.mapConfig.ServiceLayers[i].code && mc.mapConfig.ServiceLayers[i].type === 'wms') { |
| | | return mc.mapConfig.ServiceLayers[i] |
| | | } |
| | | } |