normalize dashArray in IE, update changelog
This commit is contained in:
parent
5a1e2a926f
commit
de835e3ce3
@ -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 chaining to `DomEvent` methods.
|
||||||
* Added `on` and `off` aliases for `DomEvent` `addListener` and `removeListener` 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 `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` `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 `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)
|
* Added `openPopup` method to all vector layers. [#246](https://github.com/CloudMade/Leaflet/issues/246)
|
||||||
|
@ -73,7 +73,7 @@ L.Path = L.Browser.svg || !L.Browser.vml ? L.Path : L.Path.extend({
|
|||||||
stroke.color = options.color;
|
stroke.color = options.color;
|
||||||
stroke.opacity = options.opacity;
|
stroke.opacity = options.opacity;
|
||||||
if (options.dashArray) {
|
if (options.dashArray) {
|
||||||
stroke.dashStyle = options.dashArray;
|
stroke.dashStyle = options.dashArray.replace(/ *, */g, ' ');
|
||||||
} else {
|
} else {
|
||||||
stroke.dashStyle = '';
|
stroke.dashStyle = '';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user