Merge pull request #301 from bbinet/projection-setextent
Add a setExtent method to ol.Projection
This commit is contained in:
@@ -103,6 +103,14 @@ ol.Projection.prototype.getExtent = function() {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {ol.Extent} extent Extent.
|
||||
*/
|
||||
ol.Projection.prototype.setExtent = function(extent) {
|
||||
this.extent_ = extent;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {number} resolution Resolution.
|
||||
* @param {ol.Coordinate} point Point.
|
||||
|
||||
Reference in New Issue
Block a user