Rename _ol_source_XYZ_ to XYZ
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
import {inherits} from '../index.js';
|
||||
import _ol_obj_ from '../obj.js';
|
||||
import SourceState from '../source/State.js';
|
||||
import _ol_source_XYZ_ from '../source/XYZ.js';
|
||||
import XYZ from '../source/XYZ.js';
|
||||
|
||||
/**
|
||||
* @classdesc
|
||||
@@ -41,7 +41,7 @@ var CartoDB = function(options) {
|
||||
*/
|
||||
this.templateCache_ = {};
|
||||
|
||||
_ol_source_XYZ_.call(this, {
|
||||
XYZ.call(this, {
|
||||
attributions: options.attributions,
|
||||
cacheSize: options.cacheSize,
|
||||
crossOrigin: options.crossOrigin,
|
||||
@@ -54,7 +54,7 @@ var CartoDB = function(options) {
|
||||
this.initializeMap_();
|
||||
};
|
||||
|
||||
inherits(CartoDB, _ol_source_XYZ_);
|
||||
inherits(CartoDB, XYZ);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @module ol/source/OSM
|
||||
*/
|
||||
import {inherits} from '../index.js';
|
||||
import _ol_source_XYZ_ from '../source/XYZ.js';
|
||||
import XYZ from '../source/XYZ.js';
|
||||
|
||||
/**
|
||||
* @classdesc
|
||||
@@ -30,7 +30,7 @@ var _ol_source_OSM_ = function(opt_options) {
|
||||
var url = options.url !== undefined ?
|
||||
options.url : 'https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png';
|
||||
|
||||
_ol_source_XYZ_.call(this, {
|
||||
XYZ.call(this, {
|
||||
attributions: attributions,
|
||||
cacheSize: options.cacheSize,
|
||||
crossOrigin: crossOrigin,
|
||||
@@ -44,7 +44,7 @@ var _ol_source_OSM_ = function(opt_options) {
|
||||
|
||||
};
|
||||
|
||||
inherits(_ol_source_OSM_, _ol_source_XYZ_);
|
||||
inherits(_ol_source_OSM_, XYZ);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
import {inherits} from '../index.js';
|
||||
import _ol_source_OSM_ from '../source/OSM.js';
|
||||
import _ol_source_XYZ_ from '../source/XYZ.js';
|
||||
import XYZ from '../source/XYZ.js';
|
||||
|
||||
/**
|
||||
* @classdesc
|
||||
@@ -25,7 +25,7 @@ var _ol_source_Stamen_ = function(options) {
|
||||
'https://stamen-tiles-{a-d}.a.ssl.fastly.net/' + options.layer +
|
||||
'/{z}/{x}/{y}.' + layerConfig.extension;
|
||||
|
||||
_ol_source_XYZ_.call(this, {
|
||||
XYZ.call(this, {
|
||||
attributions: _ol_source_Stamen_.ATTRIBUTIONS,
|
||||
cacheSize: options.cacheSize,
|
||||
crossOrigin: 'anonymous',
|
||||
@@ -39,7 +39,7 @@ var _ol_source_Stamen_ = function(options) {
|
||||
});
|
||||
};
|
||||
|
||||
inherits(_ol_source_Stamen_, _ol_source_XYZ_);
|
||||
inherits(_ol_source_Stamen_, XYZ);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -27,7 +27,7 @@ import _ol_tilegrid_ from '../tilegrid.js';
|
||||
* @param {olx.source.XYZOptions=} opt_options XYZ options.
|
||||
* @api
|
||||
*/
|
||||
var _ol_source_XYZ_ = function(opt_options) {
|
||||
var XYZ = function(opt_options) {
|
||||
var options = opt_options || {};
|
||||
var projection = options.projection !== undefined ?
|
||||
options.projection : 'EPSG:3857';
|
||||
@@ -59,5 +59,5 @@ var _ol_source_XYZ_ = function(opt_options) {
|
||||
|
||||
};
|
||||
|
||||
inherits(_ol_source_XYZ_, TileImage);
|
||||
export default _ol_source_XYZ_;
|
||||
inherits(XYZ, TileImage);
|
||||
export default XYZ;
|
||||
|
||||
Reference in New Issue
Block a user