Named exports from ol/proj

This commit is contained in:
Tim Schaub
2017-12-13 22:14:27 -07:00
committed by Andreas Hocevar
parent fab77e8d37
commit 6f72ffe498
127 changed files with 853 additions and 882 deletions

View File

@@ -3,7 +3,7 @@ import _ol_View_ from '../src/ol/View.js';
import _ol_control_ from '../src/ol/control.js';
import * as _ol_extent_ from '../src/ol/extent.js';
import _ol_layer_Tile_ from '../src/ol/layer/Tile.js';
import _ol_proj_ from '../src/ol/proj.js';
import {fromLonLat, get as getProjection} from '../src/ol/proj.js';
import _ol_source_WMTS_ from '../src/ol/source/WMTS.js';
import _ol_tilegrid_WMTS_ from '../src/ol/tilegrid/WMTS.js';
@@ -17,13 +17,13 @@ var map = new _ol_Map_({
}),
view: new _ol_View_({
zoom: 5,
center: _ol_proj_.transform([5, 45], 'EPSG:4326', 'EPSG:3857')
center: fromLonLat([5, 45])
})
});
var resolutions = [];
var matrixIds = [];
var proj3857 = _ol_proj_.get('EPSG:3857');
var proj3857 = getProjection('EPSG:3857');
var maxResolution = _ol_extent_.getWidth(proj3857.getExtent()) / 256;
for (var i = 0; i < 18; i++) {