diff --git a/src/ol/base/map.js b/src/ol/base/map.js index 546debe448..29bc868763 100644 --- a/src/ol/base/map.js +++ b/src/ol/base/map.js @@ -527,6 +527,14 @@ ol.Map.prototype.handleBrowserWindowResize = function() { }; +/** + * @return {boolean} Is animating. + */ +ol.Map.prototype.isAnimating = function() { + return this.animatingCount_ > 0; +}; + + /** * @return {boolean} Is defined. */