maplibre / maplibre-style-spec

MapLibre Style Specification & Utilities
https://maplibre.org/maplibre-style-spec/
Other
59 stars 52 forks source link

Step syntax can include colors #724

Open louwers opened 2 weeks ago

louwers commented 2 weeks ago

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 commented 2 weeks ago

Yes, I think the syntax is incorrect...