From 93ae4256ebe680435b8030eb7c578083de7105a7 Mon Sep 17 00:00:00 2001 From: Bruno Binet Date: Wed, 6 Mar 2013 11:16:33 +0100 Subject: [PATCH] Add a setExtent method to ol.Projection --- src/ol/projection.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ol/projection.js b/src/ol/projection.js index ca3e93ea88..4080127ad5 100644 --- a/src/ol/projection.js +++ b/src/ol/projection.js @@ -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.