-
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
Behavior of line-cap
+ line-dasharray
#884
Comments
What would happen if the dash were shorter than the radius of the cap? |
This is part of #649. |
@jfirebaugh awesome – really looking forward to all those dasharray improvements being merged in.
@peterqliu I'm not sure how @ansis implemented this, but in most styling programs, the dash shape tends to a perfect circle as the dash length tends to |
@nickidlugash this is interesting, because that would mean the length of a dash is really the dash, plus two end caps. Since a round cap gets longer as you thicken a stroke, that means each dash gets slightly longer as the line gets thicker? |
y, it should. In the PR linked above, the |
done in #938 |
Currently, line caps do not control the caps of line segments in lines using
line-dasharray
. They do in carto, and I think they should in GL, too.In carto:
In mapbox-gl-js:
The text was updated successfully, but these errors were encountered: