maplibre-gl-layer-control-tidop 0.0.7 → 0.0.9
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 +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1634,7 +1634,7 @@ class LayerControl {
|
|
|
1634
1634
|
this.showContextMenu(layerId, e.clientX, e.clientY);
|
|
1635
1635
|
});
|
|
1636
1636
|
}
|
|
1637
|
-
this.panel.
|
|
1637
|
+
this.panel.insertBefore(item, this.panel.firstChild);
|
|
1638
1638
|
}
|
|
1639
1639
|
/**
|
|
1640
1640
|
* Create a symbol element for a layer
|
|
@@ -3455,7 +3455,9 @@ class LayerControl {
|
|
|
3455
3455
|
uiLayerIds.push(layerId);
|
|
3456
3456
|
}
|
|
3457
3457
|
});
|
|
3458
|
-
|
|
3458
|
+
console.log(uiLayerIds);
|
|
3459
|
+
const reversedIds = [...uiLayerIds].reverse();
|
|
3460
|
+
console.log(reversedIds);
|
|
3459
3461
|
const style = this.map.getStyle();
|
|
3460
3462
|
const mapLibreLayerIds = new Set(((_a = style == null ? void 0 : style.layers) == null ? void 0 : _a.map((l) => l.id)) || []);
|
|
3461
3463
|
for (let i = 0; i < reversedIds.length; i++) {
|