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.cjs
CHANGED
|
@@ -2124,7 +2124,6 @@ class LayerControl {
|
|
|
2124
2124
|
button.setAttribute("aria-label", `Edit style for ${layerId}`);
|
|
2125
2125
|
}
|
|
2126
2126
|
button.addEventListener("click", (e) => {
|
|
2127
|
-
e.stopPropagation();
|
|
2128
2127
|
this.toggleStyleEditor(layerId);
|
|
2129
2128
|
console.log(e);
|
|
2130
2129
|
});
|
|
@@ -2136,6 +2135,7 @@ class LayerControl {
|
|
|
2136
2135
|
toggleStyleEditor(layerId) {
|
|
2137
2136
|
if (this.state.activeStyleEditor === layerId) {
|
|
2138
2137
|
var el = this.panel.querySelector("#layer-control-panel-layer-id");
|
|
2138
|
+
console.log(el);
|
|
2139
2139
|
if (el)
|
|
2140
2140
|
el.value = "";
|
|
2141
2141
|
this.closeStyleEditor(layerId);
|