Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested layers order #1251

Closed
A-Behairi opened this issue Sep 12, 2024 · 3 comments · Fixed by #1321
Closed

Nested layers order #1251

A-Behairi opened this issue Sep 12, 2024 · 3 comments · Fixed by #1321
Assignees
Labels
bug Something isn't working map

Comments

@A-Behairi
Copy link
Collaborator

Nested layers inside group layers gets reversed sometimes. In my case this happened in eodash, to investigate this further I debugged oldLayers & newLayers inside set layers property.

in the following image the map renders the layers in the right order
Screenshot 2024-09-11 at 13 09 50

and the wrong order in this case:
Screenshot 2024-09-12 at 16 51 53

although the layers passed have the same order

@A-Behairi A-Behairi added bug Something isn't working map labels Sep 12, 2024
@A-Behairi A-Behairi changed the title Layer order Nested layers order Sep 12, 2024
@silvester-pari
Copy link
Collaborator

There was some issue in the past where actually the layercontrol did influence the layers in the map, so just to rule that out, could you try these layers without layercontrol and see if it also happens @A-Behairi ?

@A-Behairi
Copy link
Collaborator Author

The layercontrol was removed in the explained example, I think it's more related to the sorting and reversing of the layers in the map.

@silvester-pari
Copy link
Collaborator

Fixed in #1321

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working map
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants