File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -165,6 +165,9 @@ Map.include(/** @lends Map.prototype */{
165
165
} ,
166
166
167
167
_animateTo ( view , options = { } , step ) {
168
+ if ( this . _mapAnimPlayer ) {
169
+ this . _stopAnim ( this . _mapAnimPlayer ) ;
170
+ }
168
171
this . _isInternalAnimation = true ;
169
172
this . _mapAnimPlayer = this . animateTo ( view , options , step ) ;
170
173
delete this . _isInternalAnimation ;
Original file line number Diff line number Diff line change @@ -52,6 +52,9 @@ Map.include(/** @lends Map.prototype */{
52
52
53
53
onZoomStart ( nextZoom , origin ) {
54
54
if ( ! this . options [ 'zoomable' ] || this . isZooming ( ) ) { return ; }
55
+ if ( this . _mapAnimPlayer ) {
56
+ this . _stopAnim ( this . _mapAnimPlayer ) ;
57
+ }
55
58
this . _zooming = true ;
56
59
this . _startZoomVal = this . getZoom ( ) ;
57
60
this . _startZoomCoord = this . _containerPointToPrj ( origin ) ;
You can’t perform that action at this time.
0 commit comments