From 28a0adc132d6b4e8952bc2c820a1ba59abd75a5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20S=C3=A1nchez=20Ortega?= Date: Wed, 29 Mar 2017 09:52:43 +0200 Subject: [PATCH] Ensure renderer's container is init'ed when a path is added to map (#5404) --- src/layer/vector/SVG.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/layer/vector/SVG.js b/src/layer/vector/SVG.js index b5c08548..562e8336 100644 --- a/src/layer/vector/SVG.js +++ b/src/layer/vector/SVG.js @@ -119,6 +119,7 @@ export var SVG = Renderer.extend({ }, _addPath: function (layer) { + if (!this._rootGroup) { this._initContainer(); } this._rootGroup.appendChild(layer._path); layer.addInteractiveTarget(layer._path); },