fix non-interactive vml layers

This commit is contained in:
Alex Fedosov 2015-06-19 12:32:17 +06:00
parent 0ccb43080b
commit 93f4ba7f8e

View File

@ -46,7 +46,10 @@ 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);
layer.addInteractiveTarget(container);
if (layer.options.interactive) {
layer.addInteractiveTarget(container);
}
}, },
_removePath: function (layer) { _removePath: function (layer) {