mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 19:42:36 +02:00
fix: iter on the right elements after reordering layers
This commit is contained in:
parent
401efc037d
commit
8624209e1b
1 changed files with 1 additions and 1 deletions
|
@ -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])
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue