Ensure renderer's container is init'ed when a path is added to map (#5404)

This commit is contained in:
Iván Sánchez Ortega 2017-03-29 09:52:43 +02:00 committed by Per Liedman
parent 27263b7afa
commit 28a0adc132

View File

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