Ensure renderer's container is init'ed when a path is added to map (#5404)
This commit is contained in:
parent
27263b7afa
commit
28a0adc132
@ -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);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user