From ceb41bca98ac54cbb70feced26bcdaca427a33cc Mon Sep 17 00:00:00 2001 From: Aaron Planell Lopez Date: Wed, 15 Nov 2017 09:21:59 +0100 Subject: [PATCH] Fix function _animateZoom if redirects in the middle of a transition (flyTo). --- src/map/Map.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/map/Map.js b/src/map/Map.js index c20c9734..1e671b2e 100644 --- a/src/map/Map.js +++ b/src/map/Map.js @@ -1608,6 +1608,8 @@ export var Map = Evented.extend({ }, _animateZoom: function (center, zoom, startAnim, noUpdate) { + if (!this._mapPane) { return; } + if (startAnim) { this._animatingZoom = true;