diff --git a/CHANGELOG.md b/CHANGELOG.md index 8dfafa2a..3d42ce78 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -81,6 +81,7 @@ Icon API was improved to be more flexible, but one of the changes is backwards-i * Added chaining to `DomEvent` methods. * Added `on` and `off` aliases for `DomEvent` `addListener` and `removeListener` methods. * Added `L_NO_TOUCH` global variable switch (set it before Leaflet inclusion) which disables touch detection, helpful for desktop apps built using QT. [#572](https://github.com/CloudMade/Leaflet/issues/572) + * Added `dashArray` option to vector layers for making dashed strokes (by [jacobtoye](https://github.com/jacobtoye)). [#821](https://github.com/CloudMade/Leaflet/pull/821) [#165](https://github.com/CloudMade/Leaflet/issues/165) * Added `Circle` `getBounds` method. [#440](https://github.com/CloudMade/Leaflet/issues/440) * Added `Circle` `getLatLng` and `getRadius` methods (by [@Guiswa](https://github.com/Guiswa)). [#655](https://github.com/CloudMade/Leaflet/pull/655) * Added `openPopup` method to all vector layers. [#246](https://github.com/CloudMade/Leaflet/issues/246) diff --git a/src/layer/vector/Path.VML.js b/src/layer/vector/Path.VML.js index d3c546c5..e51d7047 100644 --- a/src/layer/vector/Path.VML.js +++ b/src/layer/vector/Path.VML.js @@ -73,7 +73,7 @@ L.Path = L.Browser.svg || !L.Browser.vml ? L.Path : L.Path.extend({ stroke.color = options.color; stroke.opacity = options.opacity; if (options.dashArray) { - stroke.dashStyle = options.dashArray; + stroke.dashStyle = options.dashArray.replace(/ *, */g, ' '); } else { stroke.dashStyle = ''; }