Rename _ol_source_WMTS_ to WMTS
This commit is contained in:
@@ -8,7 +8,7 @@ import {register} from '../src/ol/proj/proj4.js';
|
||||
import OSM from '../src/ol/source/OSM.js';
|
||||
import TileImage from '../src/ol/source/TileImage.js';
|
||||
import TileWMS from '../src/ol/source/TileWMS.js';
|
||||
import _ol_source_WMTS_ from '../src/ol/source/WMTS.js';
|
||||
import WMTS from '../src/ol/source/WMTS.js';
|
||||
import XYZ from '../src/ol/source/XYZ.js';
|
||||
import TileGrid from '../src/ol/tilegrid/TileGrid.js';
|
||||
import proj4 from 'proj4';
|
||||
@@ -104,7 +104,7 @@ fetch(url).then(function(response) {
|
||||
return response.text();
|
||||
}).then(function(text) {
|
||||
var result = parser.read(text);
|
||||
var options = _ol_source_WMTS_.optionsFromCapabilities(result, {
|
||||
var options = WMTS.optionsFromCapabilities(result, {
|
||||
layer: 'OSM_Land_Mask',
|
||||
matrixSet: 'EPSG3413_250m'
|
||||
});
|
||||
@@ -112,7 +112,7 @@ fetch(url).then(function(response) {
|
||||
options.projection = 'EPSG:3413';
|
||||
options.wrapX = false;
|
||||
layers['wmts3413'] = new TileLayer({
|
||||
source: new _ol_source_WMTS_(/** @type {!olx.source.WMTSOptions} */ (options))
|
||||
source: new WMTS(/** @type {!olx.source.WMTSOptions} */ (options))
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user