Skip to content

Commit

Permalink
Fix(SVGrenderer): reset svgSize on remove from map (#5966)
Browse files Browse the repository at this point in the history
so that when the SVG Renderer is re-used and re-added on map, in `_update` method, the check on `_svgSize` triggers and re-assigns `width` and `height` attributes on the `_container`. Otherwise, the latter no longer has width and height, therefore is invisible, until the viewport size is changed.
  • Loading branch information
ghybs authored and perliedman committed Dec 19, 2017
1 parent 5832b6b commit b1e59c9
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 @@ -68,6 +68,7 @@ export var SVG = Renderer.extend({
DomEvent.off(this._container);
delete this._container;
delete this._rootGroup;
delete this._svgSize;
},

_onZoomStart: function () {
Expand Down

0 comments on commit b1e59c9

Please sign in to comment.