maplibre-gl-layer-control-tidop 0.0.17 → 0.0.19

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 CHANGED
@@ -2135,18 +2135,18 @@ class LayerControl {
2135
2135
  */
2136
2136
  toggleStyleEditor(layerId) {
2137
2137
  if (this.state.activeStyleEditor === layerId) {
2138
- var el = this.panel.querySelector(".layer-control-panel-layer-id");
2138
+ var el = this.panel.querySelector("#layer-control-panel-layer-id");
2139
2139
  if (el)
2140
- el.textContent = "";
2140
+ el.value = "";
2141
2141
  this.closeStyleEditor(layerId);
2142
2142
  return;
2143
2143
  }
2144
2144
  if (this.state.activeStyleEditor) {
2145
2145
  this.closeStyleEditor(this.state.activeStyleEditor);
2146
2146
  }
2147
- var el = this.panel.querySelector(".layer-control-panel-layer-id");
2147
+ var el = this.panel.querySelector("#layer-control-panel-layer-id");
2148
2148
  if (el)
2149
- el.textContent = layerId;
2149
+ el.value = layerId;
2150
2150
  this.openStyleEditor(layerId);
2151
2151
  }
2152
2152
  /**