fix: iter on the right elements after reordering layers

This commit is contained in:
Yohan Boniface 2024-12-02 11:12:21 +01:00
parent 401efc037d
commit 8624209e1b

View file

@ -596,7 +596,7 @@ export default class Umap extends ServerStored {
const panes = this._leafletMap.getPane('overlayPane')
this.datalayersIndex = []
for (const pane of panes) {
for (const pane of panes.children) {
if (!pane.dataset || !pane.dataset.id) continue
this.datalayersIndex.push(this.datalayers[pane.dataset.id])
}