Rename ol.projection.getFromCode to ol.projection.get
This commit is contained in:
@@ -24,7 +24,7 @@ ol.source.BingMaps = function(bingMapsOptions) {
|
||||
|
||||
goog.base(this, {
|
||||
opaque: true,
|
||||
projection: ol.projection.getFromCode('EPSG:3857')
|
||||
projection: ol.projection.get('EPSG:3857')
|
||||
});
|
||||
|
||||
/**
|
||||
@@ -112,7 +112,7 @@ ol.source.BingMaps.prototype.handleImageryMetadataResponse =
|
||||
})));
|
||||
|
||||
var transform = ol.projection.getTransform(
|
||||
ol.projection.getFromCode('EPSG:4326'), this.getProjection());
|
||||
ol.projection.get('EPSG:4326'), this.getProjection());
|
||||
var attributions = goog.array.map(
|
||||
resource.imageryProviders,
|
||||
function(imageryProvider) {
|
||||
|
||||
@@ -52,7 +52,7 @@ goog.exportSymbol('grid', grid);
|
||||
ol.source.TileJSON = function(tileJsonOptions) {
|
||||
|
||||
goog.base(this, {
|
||||
projection: ol.projection.getFromCode('EPSG:3857')
|
||||
projection: ol.projection.get('EPSG:3857')
|
||||
});
|
||||
|
||||
/**
|
||||
@@ -80,7 +80,7 @@ ol.source.TileJSON.prototype.handleTileJSONResponse = function() {
|
||||
|
||||
var tileJSON = ol.tilejson.grids_.pop();
|
||||
|
||||
var epsg4326Projection = ol.projection.getFromCode('EPSG:4326');
|
||||
var epsg4326Projection = ol.projection.get('EPSG:4326');
|
||||
|
||||
var epsg4326Extent, extent;
|
||||
if (goog.isDef(tileJSON.bounds)) {
|
||||
|
||||
@@ -37,7 +37,7 @@ ol.source.XYZOptions;
|
||||
ol.source.XYZ = function(xyzOptions) {
|
||||
|
||||
var projection = xyzOptions.projection ||
|
||||
ol.projection.getFromCode('EPSG:3857');
|
||||
ol.projection.get('EPSG:3857');
|
||||
|
||||
/**
|
||||
* @type {ol.TileUrlFunctionType}
|
||||
|
||||
Reference in New Issue
Block a user