Skip to content

Implement data-driven styling for line-dash-array #1235

@a-maggioni

Description

@a-maggioni

I would like to assign different values to "line-dash-array" property based on the actual data.
Example:
'line-dasharray': [ "case", ['==', ['get', "my_prop"], 'my_value'], ['literal', [0,0]], ['literal', [2,3]] ]

This feature has already been added to Mapbox GL JS >= 2.3.0.
I know that there is a workaround (i.e. duplicate the layer and use a filter) but it would be nice to have this feature also in maplibre.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions