Add a worldExtent to ol.proj.Projection
This commit is contained in:
committed by
Andreas Hocevar
parent
9de010c791
commit
9f19569144
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user