-
-
Notifications
You must be signed in to change notification settings - Fork 749
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
Implement data-driven styling for line-dash-array #1235
Comments
Fell free to push this forward and submit a PR. :-) |
If possible could you post a sample of the workaround? Also will this PR get merged? We would really appropriate that feature Thanks! :)) |
There is no PR - this is an issue. |
You can create two or more layers with different "line-dasharray" values and set a filter to display one layer or the other based on the actual data.
|
I would like to attempt a PR for this, as I believe it would enable a significant performance improvement in Americana. If anyone has done any work on this or is currently working on this, please reach out. |
Would really love this as well. Having the same issue as others. Of course could do the workaround but adds overhead. Thank you all for your amazing work ! |
This works like a charm thanks! |
line-cap also need data driven styling |
Assigning a XL bounty as requested by @Samarth1696 and approved by the MapLibre board. |
@HarelM I would like to work on this. |
Will this also allow gradients for line-dash-array? |
I don't think that would be the scope of this issue. I have multiple ideas in mind regarding lines like performance and other things. As of now, this implementation will not inherently allow gradients specifically for If gradient support for dashed lines is important for your project, I recommend opening a new issue or feature request after the implementation of data-driven for |
Created a feature request for this #5082 |
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.
The text was updated successfully, but these errors were encountered: