From f06d1740e09fb3b007a25e0308717750f65b80af Mon Sep 17 00:00:00 2001 From: bartvde Date: Thu, 2 Mar 2017 13:48:50 +0100 Subject: [PATCH] Make getAnimating and cancelAnimations @api --- src/ol/view.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ol/view.js b/src/ol/view.js index 7b6c206d21..1327c4691e 100644 --- a/src/ol/view.js +++ b/src/ol/view.js @@ -264,6 +264,7 @@ ol.View.prototype.animate = function(var_args) { /** * Determine if the view is being animated. * @return {boolean} The view is being animated. + * @api */ ol.View.prototype.getAnimating = function() { return this.getHints()[ol.ViewHint.ANIMATING] > 0; @@ -272,6 +273,7 @@ ol.View.prototype.getAnimating = function() { /** * Cancel any ongoing animations. + * @api */ ol.View.prototype.cancelAnimations = function() { this.setHint(ol.ViewHint.ANIMATING, -this.getHints()[ol.ViewHint.ANIMATING]);