maplibre-gl-layer-control-tidop 0.0.19 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2122,7 +2122,6 @@ class LayerControl {
|
|
|
2122
2122
|
button.setAttribute("aria-label", `Edit style for ${layerId}`);
|
|
2123
2123
|
}
|
|
2124
2124
|
button.addEventListener("click", (e) => {
|
|
2125
|
-
e.stopPropagation();
|
|
2126
2125
|
this.toggleStyleEditor(layerId);
|
|
2127
2126
|
console.log(e);
|
|
2128
2127
|
});
|
|
@@ -2134,6 +2133,7 @@ class LayerControl {
|
|
|
2134
2133
|
toggleStyleEditor(layerId) {
|
|
2135
2134
|
if (this.state.activeStyleEditor === layerId) {
|
|
2136
2135
|
var el = this.panel.querySelector("#layer-control-panel-layer-id");
|
|
2136
|
+
console.log(el);
|
|
2137
2137
|
if (el)
|
|
2138
2138
|
el.value = "";
|
|
2139
2139
|
this.closeStyleEditor(layerId);
|