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 a method to set the map layers #12793

Merged
merged 1 commit into from
Sep 22, 2021
Merged

Add a method to set the map layers #12793

merged 1 commit into from
Sep 22, 2021

Conversation

tschaub
Copy link
Member

@tschaub tschaub commented Sep 21, 2021

This adds a map.setLayers() method that lets people set map layers. Any existing layers are cleared when setting new layers.

Copy link
Member

@ahocevar ahocevar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yes, this adds a lot of convenience. Thanks!

@tschaub tschaub merged commit 81bdd51 into openlayers:main Sep 22, 2021
@tschaub tschaub deleted the set-layers branch September 22, 2021 08:17
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