diagonalworks / diagonal-b6

b6: Diagonal's geospatial analysis engine.
Apache License 2.0
24 stars 3 forks source link

Use color tag as fill color if it exists #287

Closed biamalveiro closed 3 months ago

biamalveiro commented 3 months ago

Goal

When a map feature includes a "colour" tag, we interpret it and use it as the fill color for the feature.

Description.

For the layers landuse-nature, landuse-forest , landuse-urban, landuse-greenspaces, road, building, we add the following case condition on the map style spec:

["case", ["has", "colour"],["get", "colour"], ["literal",${default color}]]