Use ol.inherits instead of goog.inherits
This commit is contained in:
@@ -17,7 +17,7 @@ goog.require('ol.proj.Units');
|
||||
* @private
|
||||
*/
|
||||
ol.proj.EPSG3857_ = function(code) {
|
||||
goog.base(this, {
|
||||
ol.proj.Projection.call(this, {
|
||||
code: code,
|
||||
units: ol.proj.Units.METERS,
|
||||
extent: ol.proj.EPSG3857.EXTENT,
|
||||
@@ -25,7 +25,7 @@ ol.proj.EPSG3857_ = function(code) {
|
||||
worldExtent: ol.proj.EPSG3857.WORLD_EXTENT
|
||||
});
|
||||
};
|
||||
goog.inherits(ol.proj.EPSG3857_, ol.proj.Projection);
|
||||
ol.inherits(ol.proj.EPSG3857_, ol.proj.Projection);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -21,7 +21,7 @@ goog.require('ol.sphere.WGS84');
|
||||
* @private
|
||||
*/
|
||||
ol.proj.EPSG4326_ = function(code, opt_axisOrientation) {
|
||||
goog.base(this, {
|
||||
ol.proj.Projection.call(this, {
|
||||
code: code,
|
||||
units: ol.proj.Units.DEGREES,
|
||||
extent: ol.proj.EPSG4326.EXTENT,
|
||||
@@ -31,7 +31,7 @@ ol.proj.EPSG4326_ = function(code, opt_axisOrientation) {
|
||||
worldExtent: ol.proj.EPSG4326.EXTENT
|
||||
});
|
||||
};
|
||||
goog.inherits(ol.proj.EPSG4326_, ol.proj.Projection);
|
||||
ol.inherits(ol.proj.EPSG4326_, ol.proj.Projection);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user