maplibre-gl-layer-control-tidop 0.0.15 → 0.0.16
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 +6 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +6 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2134,16 +2134,18 @@ class LayerControl {
|
|
|
2134
2134
|
*/
|
|
2135
2135
|
toggleStyleEditor(layerId) {
|
|
2136
2136
|
if (this.state.activeStyleEditor === layerId) {
|
|
2137
|
-
var el =
|
|
2138
|
-
|
|
2137
|
+
var el = this.panel.querySelector(".layer-control-panel-title");
|
|
2138
|
+
if (el)
|
|
2139
|
+
el.innerHTML = "";
|
|
2139
2140
|
this.closeStyleEditor(layerId);
|
|
2140
2141
|
return;
|
|
2141
2142
|
}
|
|
2142
2143
|
if (this.state.activeStyleEditor) {
|
|
2143
2144
|
this.closeStyleEditor(this.state.activeStyleEditor);
|
|
2144
2145
|
}
|
|
2145
|
-
var el =
|
|
2146
|
-
|
|
2146
|
+
var el = this.panel.querySelector(".layer-control-panel-title");
|
|
2147
|
+
if (el)
|
|
2148
|
+
el.innerHTML = layerId;
|
|
2147
2149
|
this.openStyleEditor(layerId);
|
|
2148
2150
|
}
|
|
2149
2151
|
/**
|