Skip to content

Commit

Permalink
Add pane support to l-tile-layer-wms
Browse files Browse the repository at this point in the history
  • Loading branch information
mo-analameira committed Nov 4, 2024
1 parent cbb576a commit 2445309
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/l-tile-layer-wms.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,17 @@ class LTileLayerWMS extends LLayer {
}
};

// Pane options
const paneOptions = {}
// Support <l-pane> 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 },
Expand Down

0 comments on commit 2445309

Please sign in to comment.