diff --git a/src/l-tile-layer-wms.js b/src/l-tile-layer-wms.js index 8977821..7baafbb 100644 --- a/src/l-tile-layer-wms.js +++ b/src/l-tile-layer-wms.js @@ -46,9 +46,17 @@ class LTileLayerWMS extends LLayer { } }; + // Pane options + const paneOptions = {} + // Support parent element + if (this.parentElement.tagName.toLowerCase() === "l-pane") { + paneOptions["pane"] = this.parentElement.getAttribute("name") + } + this.layer = tileLayer.wms(urlTemplate, { ...standardOptions, ...nonStandardOptions(), + ...paneOptions }); const event = new CustomEvent(layerConnected, { detail: { name, layer: this.layer },