maplibre-native
maplibre-native copied to clipboard
Data-driven line-dash-array
Based on https://github.com/maplibre/maplibre/discussions/167 I am creating an issue for native repo as well:
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.
More info here: https://github.com/maplibre/maplibre-gl-js/issues/1235