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); },