Merge pull request #301 from bbinet/projection-setextent

Add a setExtent method to ol.Projection
This commit is contained in:
Bruno Binet
2013-03-06 09:46:07 -08:00

View File

@@ -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.