Added stroke-dashArray to path options

This commit is contained in:
Jeff Smale 2014-03-07 11:50:44 +13:00
parent 064902665e
commit b1e08ab8c2

View File

@ -93,6 +93,11 @@ L.SVG = L.Renderer.extend({
path.removeAttribute('stroke-dasharray');
}
if (options.dashArrayOffset) {
path.setAttribute('stroke-dashoffset', options.dashArrayOffset);
} else {
path.removeAttribute('stroke-dashoffset');
}
} else {
path.setAttribute('stroke', 'none');
}