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

AddLayerModal: Show layer in tree after adding it to the map #1758

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

dnlkoch
Copy link
Member

@dnlkoch dnlkoch commented Nov 5, 2024

If the first layer is added to the map in the AddLayerModal (and the "External layers" folder is not present in the tree yet) the layer isn't visible in this folder. This fixes this issue by adding the layer to the target group before adding it to the map (to make all event listeners in the react-geo layer tree work as needed).

Please review @terrestris/devs.

Copy link

github-actions bot commented Nov 5, 2024

null

@dnlkoch
Copy link
Member Author

dnlkoch commented Nov 7, 2024

Thanks for the review!

@dnlkoch dnlkoch merged commit eabc926 into next Nov 7, 2024
1 check passed
@dnlkoch dnlkoch deleted the fix-add-wms branch November 7, 2024 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants