Add global=true for both EPSG:4326 and EPSG:3857
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user