Add getters for min and max resolution of the view
This commit is contained in:
1 parent
5d85867fbf
commit
449ea370c0
1 file changed
+20
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user