Merge pull request #6549 from bartvde/animating-api
Make getAnimating and cancelAnimations @api
This commit is contained in:
@@ -264,6 +264,7 @@ ol.View.prototype.animate = function(var_args) {
|
|||||||
/**
|
/**
|
||||||
* Determine if the view is being animated.
|
* Determine if the view is being animated.
|
||||||
* @return {boolean} The view is being animated.
|
* @return {boolean} The view is being animated.
|
||||||
|
* @api
|
||||||
*/
|
*/
|
||||||
ol.View.prototype.getAnimating = function() {
|
ol.View.prototype.getAnimating = function() {
|
||||||
return this.getHints()[ol.ViewHint.ANIMATING] > 0;
|
return this.getHints()[ol.ViewHint.ANIMATING] > 0;
|
||||||
@@ -272,6 +273,7 @@ ol.View.prototype.getAnimating = function() {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Cancel any ongoing animations.
|
* Cancel any ongoing animations.
|
||||||
|
* @api
|
||||||
*/
|
*/
|
||||||
ol.View.prototype.cancelAnimations = function() {
|
ol.View.prototype.cancelAnimations = function() {
|
||||||
this.setHint(ol.ViewHint.ANIMATING, -this.getHints()[ol.ViewHint.ANIMATING]);
|
this.setHint(ol.ViewHint.ANIMATING, -this.getHints()[ol.ViewHint.ANIMATING]);
|
||||||
|
|||||||
Reference in New Issue
Block a user