Skip to content

Commit

Permalink
Ensure renderer's container is init'ed when a path is added to map (L…
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanSanchez authored and perliedman committed Mar 29, 2017
1 parent 27263b7 commit 28a0adc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/layer/vector/SVG.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
Expand Down

0 comments on commit 28a0adc

Please sign in to comment.