We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Adding a canvas-rendered polyline/polygon with dashArray containing space-separated numbers, e.g.:
dashArray
L.polyline([[0, 0], [40, 10]], { dashArray: "4 4", renderer: L.canvas() }).addTo(map);
The line doesn't get dashes but shows solid instead.
See https://plnkr.co/edit/xHfZHNDhded1VaIdae1K?p=preview
The browser documentation for SVG dashArray specifies, emphasis mine:
a list of comma and/or white space separated <length>s and <percentage>s that specify the lengths of alternating dashes and gaps.
<length>
<percentage>
The text was updated successfully, but these errors were encountered:
Canvas dashArray accepts comma- or space-separated strings
7c0c852
Should fix #6277. Haven't really tested it myself.
8c505b9
Canvas dashArray accepts comma- or space-separated strings (#6278)
9cb9c5c
Successfully merging a pull request may close this issue.
Adding a canvas-rendered polyline/polygon with
dashArray
containing space-separated numbers, e.g.:The line doesn't get dashes but shows solid instead.
See https://plnkr.co/edit/xHfZHNDhded1VaIdae1K?p=preview
The browser documentation for SVG
dashArray
specifies, emphasis mine:The text was updated successfully, but these errors were encountered: