Add a worldExtent to ol.proj.Projection

This commit is contained in:
Éric Lemoine
2014-07-11 22:18:01 +02:00
committed by Andreas Hocevar
parent 9de010c791
commit 9f19569144
4 changed files with 48 additions and 3 deletions
+9 -1
View File
@@ -23,7 +23,8 @@ ol.proj.EPSG3857_ = function(code) {
code: code,
units: ol.proj.Units.METERS,
extent: ol.proj.EPSG3857.EXTENT,
global: true
global: true,
worldExtent: ol.proj.EPSG3857.WORLD_EXTENT
});
};
goog.inherits(ol.proj.EPSG3857_, ol.proj.Projection);
@@ -61,6 +62,13 @@ ol.proj.EPSG3857.EXTENT = [
];
/**
* @const
* @type {ol.Extent}
*/
ol.proj.EPSG3857.WORLD_EXTENT = [-180, -85, 180, 85];
/**
* Lists several projection codes with the same meaning as EPSG:3857.
*