From 8624209e1b696d7110786b78e8872d98fc57163b Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Mon, 2 Dec 2024 11:12:21 +0100 Subject: [PATCH] fix: iter on the right elements after reordering layers --- umap/static/umap/js/modules/umap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umap/static/umap/js/modules/umap.js b/umap/static/umap/js/modules/umap.js index b0696827..5c856185 100644 --- a/umap/static/umap/js/modules/umap.js +++ b/umap/static/umap/js/modules/umap.js @@ -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]) }