maplibre-gl-layer-control 0.6.0 → 0.6.2
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/README.md +152 -0
- package/dist/index.cjs +3 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +3 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1734,7 +1734,7 @@ class LayerControl {
|
|
|
1734
1734
|
if (!itemEl) return;
|
|
1735
1735
|
const layerState = this.state.layerStates[layerId];
|
|
1736
1736
|
if (layerState == null ? void 0 : layerState.isCustomLayer) {
|
|
1737
|
-
const editor2 = this.createCustomLayerInfoPanel(layerId
|
|
1737
|
+
const editor2 = this.createCustomLayerInfoPanel(layerId);
|
|
1738
1738
|
itemEl.appendChild(editor2);
|
|
1739
1739
|
this.styleEditors.set(layerId, editor2);
|
|
1740
1740
|
this.state.activeStyleEditor = layerId;
|
|
@@ -1761,7 +1761,7 @@ class LayerControl {
|
|
|
1761
1761
|
/**
|
|
1762
1762
|
* Create info panel for custom layers (style editing not supported)
|
|
1763
1763
|
*/
|
|
1764
|
-
createCustomLayerInfoPanel(layerId
|
|
1764
|
+
createCustomLayerInfoPanel(layerId) {
|
|
1765
1765
|
const editor = document.createElement("div");
|
|
1766
1766
|
editor.className = "layer-control-style-editor layer-control-custom-info";
|
|
1767
1767
|
const header = document.createElement("div");
|
|
@@ -1783,8 +1783,7 @@ class LayerControl {
|
|
|
1783
1783
|
content.className = "style-editor-controls";
|
|
1784
1784
|
const infoText = document.createElement("p");
|
|
1785
1785
|
infoText.className = "layer-control-custom-info-text";
|
|
1786
|
-
|
|
1787
|
-
infoText.textContent = `This is a ${typeLabel} layer. Style editing is not available for this layer type. Use the visibility toggle and opacity slider to control the layer.`;
|
|
1786
|
+
infoText.textContent = `This is a custom layer. Style editing is not available for this layer type. Use the visibility toggle and opacity slider to control the layer.`;
|
|
1788
1787
|
content.appendChild(infoText);
|
|
1789
1788
|
const actions = document.createElement("div");
|
|
1790
1789
|
actions.className = "style-editor-actions";
|