setlayer() { let CQL_FILTER = ``; if (this.boundaryLayer == null) { this.boundaryLayer = L.layerGroup(); this.boundaryLayer.addTo(this.map) } this.boundaryLayer.clearLayers(); let layer = L.tileLayer.wms(`${this.$baseIP}geoserver/guizhou/wms`, { exceptions: "application/vnd.ogc.se_inimage", format: 'image/png', layers: 'guizhou:Border_Shi', styles: "guizhou:FFF", transparent: true, REQUEST: 'GetMap', SERVICE: 'WMS', tileSize: 256, attribution: "Weather data © 2012 IEM Nexrad", srs: "EPSG:4326", CQL_FILTER: CQL_FILTER || '', pane: 'ystbPane' }) layer.addTo(this.boundaryLayer); },
浙公网安备 33010602011771号