Fix function _animateZoom if redirects in the middle of a transition (flyTo).

This commit is contained in:
Aaron Planell Lopez 2017-11-15 09:21:59 +01:00
parent abc3bf3027
commit ceb41bca98

View File

@ -1608,6 +1608,8 @@ export var Map = Evented.extend({
}, },
_animateZoom: function (center, zoom, startAnim, noUpdate) { _animateZoom: function (center, zoom, startAnim, noUpdate) {
if (!this._mapPane) { return; }
if (startAnim) { if (startAnim) {
this._animatingZoom = true; this._animatingZoom = true;