Add global=true for both EPSG:4326 and EPSG:3857

This commit is contained in:
Bruno Binet
2013-03-07 01:17:54 +01:00
parent 4415f8ac74
commit 1e050fe25f
2 changed files with 4 additions and 2 deletions

View File

@@ -18,7 +18,8 @@ ol.projection.EPSG3857 = function(code) {
goog.base(this, {
code: code,
units: ol.ProjectionUnits.METERS,
extent: ol.projection.EPSG3857.EXTENT
extent: ol.projection.EPSG3857.EXTENT,
global: true
});
};
goog.inherits(ol.projection.EPSG3857, ol.Projection);

View File

@@ -18,7 +18,8 @@ ol.projection.EPSG4326 = function(code, opt_axisOrientation) {
code: code,
units: ol.ProjectionUnits.DEGREES,
extent: ol.projection.EPSG4326.EXTENT,
axisOrientation: opt_axisOrientation
axisOrientation: opt_axisOrientation,
global: true
});
};
goog.inherits(ol.projection.EPSG4326, ol.Projection);