-
Notifications
You must be signed in to change notification settings - Fork 59
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
feat: adds empty background if property is set #3477
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would add an actual layer to the map and the layer would be visible in a layer tree and other related components. Can't we just add a custom element to the layer chooser changing the visible status of each background layer to false
?
I have now added a toggle button instead of creating a new layer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, very nice @FritzHoing!
b48bf5b
to
1b65998
Compare
67f2510
to
81aaf6e
Compare
backgroundLayerFilter?: (layer: OlLayerBase) => boolean; | ||
initialLayer?: OlLayer; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add some code docs here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point!
8f9fc06
to
809a525
Compare
# [23.1.0](v23.0.1...v23.1.0) (2023-09-22) ### Features * adds empty background if property is set ([#3477](#3477)) ([c093a2a](c093a2a))
🎉 This PR is included in version 23.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
Adds a toggle-button to turn of the visibility of the selected layer.
Pull request type
Do you introduce a breaking change?
Checklist
BSD-2-Clause.
npm test
locally).