-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Change units of line-dasharray to pixels #4158
Comments
From @1ec5 on December 22, 2016 19:22 This would also be good for parity with MapKit in the iOS and macOS SDKs. (MapKit’s |
From @nickidlugash on December 22, 2016 19:34 @mollymerp sounds like this is the best option. If we do this, is it possible to also refactor the function behavior of If it is possible to implement this ^, I think it would greatly reduce the burden on designers for matching FWIW though, I do personally already write |
@anandthakker mentioned the other day that during a sprint earlier this year this was discussed, possibly with the conclusion that we wouldn't have to change units to pixels. @nickidlugash or anyone else — is there more information/discussion that hasn't been captured in this ticket? |
Could we add a new property expressed in pixels and deprecate |
@lbud I think we decided we could get around this by creating a new property (as @1ec5 suggests, but maybe not |
I think the problem is that supporting the current |
Came up with a workaround for this ➡️ #4773. Closing here; will reopen in case of unforeseen pitfalls in that approach. |
From @mollymerp on December 22, 2016 16:45
After discussing with @ansis and @jfirebaugh it seems that the most straight-forward way to make data-driven
line-width
andline-dasharray
possible, would be to change the units ofline-dasharray
to absolute pixels (from relative units ofline-width
) becauseThis would introduce some complexity in stying lines with
line-dasharray
because they would need additional zoom functions to stay in sync with line-width to make sure theline-dasharray
appears consistent as the map zooms. This seems like a reasonable tradeoff to keeping property function evaluation consistent across all paint properties (we'd need to introduce many exceptions to the current code path ifline-dasharray
stays a relative value).Interested to hear thoughts on this! cc @lucaswoj @nickidlugash
Previous discussion on the possible approaches to solving this problem here: #3682
Copied from original issue: mapbox/mapbox-gl-style-spec#633
The text was updated successfully, but these errors were encountered: