From 93f4ba7f8e53debacd8f72c02256e225546d4b47 Mon Sep 17 00:00:00 2001 From: Alex Fedosov Date: Fri, 19 Jun 2015 12:32:17 +0600 Subject: [PATCH] fix non-interactive vml layers --- src/layer/vector/SVG.VML.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/layer/vector/SVG.VML.js b/src/layer/vector/SVG.VML.js index 7099e776..e67ba579 100644 --- a/src/layer/vector/SVG.VML.js +++ b/src/layer/vector/SVG.VML.js @@ -46,7 +46,10 @@ L.SVG.include(!L.Browser.vml ? {} : { _addPath: function (layer) { var container = layer._container; this._container.appendChild(container); - layer.addInteractiveTarget(container); + + if (layer.options.interactive) { + layer.addInteractiveTarget(container); + } }, _removePath: function (layer) {