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

Step syntax can include colors #724

Open
louwers opened this issue Jun 24, 2024 · 1 comment
Open

Step syntax can include colors #724

louwers opened this issue Jun 24, 2024 · 1 comment

Comments

@louwers
Copy link
Collaborator

louwers commented Jun 24, 2024

The syntax for step is

["step", step, number, number, number, ...]: number

according to the documentation.

However, the step value can be a color too (or anything really?). E.g.

["step", ["get", "rank"], 0, "red", 10, "green", 20, "blue", 30, "purple", 40, "yellow"]

@HarelM Could you confirm?

https://maplibre.org/maplibre-style-spec/expressions/#step

@HarelM
Copy link
Collaborator

HarelM commented Jun 24, 2024

Yes, I think the syntax is incorrect...

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

No branches or pull requests

2 participants