Use getAnimating and getInteracting from ol.View

This commit is contained in:
Frederic Junod
2017-11-08 11:38:07 +01:00
parent 0fceb2f3e3
commit 82da43af35
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -151,7 +151,7 @@ ol.interaction.DragPan.handleDownEvent_ = function(mapBrowserEvent) {
view.setHint(ol.ViewHint.INTERACTING, 1);
}
// stop any current animation
if (view.getHints()[ol.ViewHint.ANIMATING]) {
if (view.getAnimating()) {
view.setCenter(mapBrowserEvent.frameState.viewState.center);
}
if (this.kinetic_) {