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

Ability to define which themes of a thematicStyling layer to be on from start #1986

Open
Grammostola opened this issue Mar 28, 2024 · 0 comments

Comments

@Grammostola
Copy link
Contributor

Grammostola commented Mar 28, 2024

I have received feedback that it would be useful to be able to configure which themes of a thematicStyling layer should be active on map start.

Describe the solution you'd like

{
"thematicStyling": {
  "onAtStart": ["fluvial", "volcanic"]
  }
}

where "fluvial" is the rule name of a WMS style or the label of a vector style. For vector styles the "id" would fit better for the same reason as in #1962 but I think that similarly both should work here.

thematicStyling being parsable as both an object and a boolean: both true and an object would be considered truthy.

Describe alternatives you've considered
A second prop on the same level as thematicStyling, like thematicStylingPreset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants