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

Add/remove layers #39

Closed
alexkirsz opened this issue Feb 4, 2024 · 1 comment · Fixed by #43
Closed

Add/remove layers #39

alexkirsz opened this issue Feb 4, 2024 · 1 comment · Fixed by #43

Comments

@alexkirsz
Copy link
Contributor

Hey!

I'd like to be able to dynamically add and remove layers. My use case is a GUI where users can load files containing features, reorder them, and remove them.

@kylerchin
Copy link
Contributor

Good feature requirement to have parity with other libraries, such as maplibre-gl-js!

Maximkaaa added a commit that referenced this issue Feb 6, 2024
Add `LayerCollection` struct with some methods to change the layers list of a map.

Also provides `as_any` method on layers to allow downcasting layers from the list into concrete types.

Fixes #39
Maximkaaa added a commit that referenced this issue Feb 6, 2024
Add `LayerCollection` struct with some methods to change the layers list of a map.

Also provides `as_any` method on layers to allow downcasting layers from the list into concrete types.

Fixes #39
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 a pull request may close this issue.

2 participants