Named exports from ol/proj/epsg3857
This commit is contained in:
@@ -2,7 +2,7 @@ import {DEFAULT_MAX_ZOOM, DEFAULT_TILE_SIZE} from '../../../../src/ol/tilegrid/c
|
||||
import TileRange from '../../../../src/ol/TileRange.js';
|
||||
import * as _ol_extent_ from '../../../../src/ol/extent.js';
|
||||
import {get as getProjection, METERS_PER_UNIT} from '../../../../src/ol/proj.js';
|
||||
import _ol_proj_EPSG3857_ from '../../../../src/ol/proj/EPSG3857.js';
|
||||
import {HALF_SIZE} from '../../../../src/ol/proj/epsg3857.js';
|
||||
import Projection from '../../../../src/ol/proj/Projection.js';
|
||||
import _ol_tilegrid_ from '../../../../src/ol/tilegrid.js';
|
||||
import TileGrid from '../../../../src/ol/tilegrid/TileGrid.js';
|
||||
@@ -348,7 +348,7 @@ describe('ol.tilegrid.TileGrid', function() {
|
||||
const projection = getProjection('EPSG:3857');
|
||||
const grid = _ol_tilegrid_.createForProjection(projection);
|
||||
const origin = grid.getOrigin();
|
||||
const half = _ol_proj_EPSG3857_.HALF_SIZE;
|
||||
const half = HALF_SIZE;
|
||||
expect(origin).to.eql([-half, half]);
|
||||
});
|
||||
|
||||
@@ -357,7 +357,7 @@ describe('ol.tilegrid.TileGrid', function() {
|
||||
const grid = _ol_tilegrid_.createForProjection(
|
||||
projection, undefined, undefined, 'bottom-left');
|
||||
const origin = grid.getOrigin();
|
||||
const half = _ol_proj_EPSG3857_.HALF_SIZE;
|
||||
const half = HALF_SIZE;
|
||||
expect(origin).to.eql([-half, -half]);
|
||||
});
|
||||
|
||||
@@ -366,7 +366,7 @@ describe('ol.tilegrid.TileGrid', function() {
|
||||
const grid = _ol_tilegrid_.createForProjection(
|
||||
projection, undefined, undefined, 'bottom-right');
|
||||
const origin = grid.getOrigin();
|
||||
const half = _ol_proj_EPSG3857_.HALF_SIZE;
|
||||
const half = HALF_SIZE;
|
||||
expect(origin).to.eql([half, -half]);
|
||||
});
|
||||
|
||||
@@ -375,7 +375,7 @@ describe('ol.tilegrid.TileGrid', function() {
|
||||
const grid = _ol_tilegrid_.createForProjection(
|
||||
projection, undefined, undefined, 'top-left');
|
||||
const origin = grid.getOrigin();
|
||||
const half = _ol_proj_EPSG3857_.HALF_SIZE;
|
||||
const half = HALF_SIZE;
|
||||
expect(origin).to.eql([-half, half]);
|
||||
});
|
||||
|
||||
@@ -384,7 +384,7 @@ describe('ol.tilegrid.TileGrid', function() {
|
||||
const grid = _ol_tilegrid_.createForProjection(
|
||||
projection, undefined, undefined, 'top-right');
|
||||
const origin = grid.getOrigin();
|
||||
const half = _ol_proj_EPSG3857_.HALF_SIZE;
|
||||
const half = HALF_SIZE;
|
||||
expect(origin).to.eql([half, half]);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user