fix vector in ie8
This commit is contained in:
parent
9024a79a6e
commit
57d7dff81f
@ -60,7 +60,7 @@
|
|||||||
var polyline = L.polyline([
|
var polyline = L.polyline([
|
||||||
getRandomLatLng(map),
|
getRandomLatLng(map),
|
||||||
getRandomLatLng(map),
|
getRandomLatLng(map),
|
||||||
getRandomLatLng(map),
|
getRandomLatLng(map)
|
||||||
], {
|
], {
|
||||||
color: 'red'
|
color: 'red'
|
||||||
}).bindPopup('I\'m a red polyline').addTo(map);
|
}).bindPopup('I\'m a red polyline').addTo(map);
|
||||||
|
@ -23,9 +23,6 @@ L.SVG.include(!L.Browser.vml ? {} : {
|
|||||||
|
|
||||||
_initContainer: function () {
|
_initContainer: function () {
|
||||||
this._container = L.DomUtil.create('div', 'leaflet-vml-container');
|
this._container = L.DomUtil.create('div', 'leaflet-vml-container');
|
||||||
|
|
||||||
this._paths = {};
|
|
||||||
this._initEvents();
|
|
||||||
},
|
},
|
||||||
|
|
||||||
_update: function () {
|
_update: function () {
|
||||||
@ -49,13 +46,13 @@ L.SVG.include(!L.Browser.vml ? {} : {
|
|||||||
_addPath: function (layer) {
|
_addPath: function (layer) {
|
||||||
var container = layer._container;
|
var container = layer._container;
|
||||||
this._container.appendChild(container);
|
this._container.appendChild(container);
|
||||||
this._paths[L.stamp(container)] = layer;
|
layer.addInteractiveTarget(container);
|
||||||
},
|
},
|
||||||
|
|
||||||
_removePath: function (layer) {
|
_removePath: function (layer) {
|
||||||
var container = layer._container;
|
var container = layer._container;
|
||||||
L.DomUtil.remove(container);
|
L.DomUtil.remove(container);
|
||||||
delete this._paths[L.stamp(container)];
|
layer.removeInteractiveTarget(container);
|
||||||
},
|
},
|
||||||
|
|
||||||
_updateStyle: function (layer) {
|
_updateStyle: function (layer) {
|
||||||
|
Loading…
Reference in New Issue
Block a user