maplibre-gl-layer-control-tidop 0.0.18 → 0.0.20
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 +5 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +5 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2135,18 +2135,19 @@ class LayerControl {
|
|
|
2135
2135
|
*/
|
|
2136
2136
|
toggleStyleEditor(layerId) {
|
|
2137
2137
|
if (this.state.activeStyleEditor === layerId) {
|
|
2138
|
-
var el = this.panel.querySelector("
|
|
2138
|
+
var el = this.panel.querySelector("#layer-control-panel-layer-id");
|
|
2139
|
+
console.log(el);
|
|
2139
2140
|
if (el)
|
|
2140
|
-
el.
|
|
2141
|
+
el.value = "";
|
|
2141
2142
|
this.closeStyleEditor(layerId);
|
|
2142
2143
|
return;
|
|
2143
2144
|
}
|
|
2144
2145
|
if (this.state.activeStyleEditor) {
|
|
2145
2146
|
this.closeStyleEditor(this.state.activeStyleEditor);
|
|
2146
2147
|
}
|
|
2147
|
-
var el = this.panel.querySelector("
|
|
2148
|
+
var el = this.panel.querySelector("#layer-control-panel-layer-id");
|
|
2148
2149
|
if (el)
|
|
2149
|
-
el.
|
|
2150
|
+
el.value = layerId;
|
|
2150
2151
|
this.openStyleEditor(layerId);
|
|
2151
2152
|
}
|
|
2152
2153
|
/**
|