Rename _ol_tilegrid_TileGrid_ to TileGrid
This commit is contained in:
@@ -5,7 +5,7 @@ import TileLayer from '../src/ol/layer/Tile.js';
|
||||
import {get as getProjection} from '../src/ol/proj.js';
|
||||
import _ol_source_OSM_ from '../src/ol/source/OSM.js';
|
||||
import _ol_source_TileWMS_ from '../src/ol/source/TileWMS.js';
|
||||
import _ol_tilegrid_TileGrid_ from '../src/ol/tilegrid/TileGrid.js';
|
||||
import TileGrid from '../src/ol/tilegrid/TileGrid.js';
|
||||
|
||||
|
||||
var projExtent = getProjection('EPSG:3857').getExtent();
|
||||
@@ -14,7 +14,7 @@ var resolutions = new Array(22);
|
||||
for (var i = 0, ii = resolutions.length; i < ii; ++i) {
|
||||
resolutions[i] = startResolution / Math.pow(2, i);
|
||||
}
|
||||
var tileGrid = new _ol_tilegrid_TileGrid_({
|
||||
var tileGrid = new TileGrid({
|
||||
extent: [-13884991, 2870341, -7455066, 6338219],
|
||||
resolutions: resolutions,
|
||||
tileSize: [512, 256]
|
||||
|
||||
Reference in New Issue
Block a user