diff --git a/src/ol/view.js b/src/ol/view.js index 293316271b..780aa43694 100644 --- a/src/ol/view.js +++ b/src/ol/view.js @@ -297,6 +297,26 @@ ol.View.prototype.calculateExtent = function(size) { }; +/** + * Get the maximum resolution of the view. + * @return {number} The maximum resolution of the view. + * @api + */ +ol.View.prototype.getMaxResolution = function() { + return this.maxResolution_; +}; + + +/** + * Get the minimum resolution of the view. + * @return {number} The minimum resolution of the view. + * @api + */ +ol.View.prototype.getMinResolution = function() { + return this.minResolution_; +}; + + /** * Get the view projection. * @return {ol.proj.Projection} The projection of the view.