Skip to content
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

Added support for dashed strokes. #821

Merged
merged 1 commit into from
Jul 24, 2012
Merged

Conversation

jacobtoye
Copy link
Member

We have a use case where we style the stroke of a vector shape as dashed. Initially I thought to do this with css. SVG supported this, VML did not :(

This pull adds the stroke property dasharray/dashstyle to paths. VML needs a string or lengths separated by spaces and SVG can take both space separated or comma separated.

http://msdn.microsoft.com/en-us/library/bb264085(v=vs.85).aspx
https://developer.mozilla.org/en/SVG/Attribute/stroke-dasharray

Tested in IE7, IE8-9 (via IE9), FF, Chrome & Safari.

I haven't updated the docs yet. I notice you're working on them at the moment. Would you like me to add this property to the gh-pages-master branch (assuming this pull is accepted)?

@jacobtoye
Copy link
Member Author

I see that there is already an open issue for this: #165

mourner added a commit that referenced this pull request Jul 24, 2012
Added support for dashed strokes.
@mourner mourner merged commit c47333c into Leaflet:master Jul 24, 2012
@mourner
Copy link
Member

mourner commented Jul 24, 2012

Thanks!

@mourner
Copy link
Member

mourner commented Jul 24, 2012

I've added normalization of dashArray to VML code so that it accepts comma-separated values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants