Simplify import path in examples
To have the same path (starting with `ol/`, without `.js`) as in the documentation. The support was added in the webpack config in #8928
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import Map from '../src/ol/Map.js';
|
||||
import View from '../src/ol/View.js';
|
||||
import MVT from '../src/ol/format/MVT.js';
|
||||
import VectorTileLayer from '../src/ol/layer/VectorTile.js';
|
||||
import {get as getProjection} from '../src/ol/proj.js';
|
||||
import VectorTileSource from '../src/ol/source/VectorTile.js';
|
||||
import {Fill, Icon, Stroke, Style, Text} from '../src/ol/style.js';
|
||||
import TileGrid from '../src/ol/tilegrid/TileGrid.js';
|
||||
import Map from 'ol/Map';
|
||||
import View from 'ol/View';
|
||||
import MVT from 'ol/format/MVT';
|
||||
import VectorTileLayer from 'ol/layer/VectorTile';
|
||||
import {get as getProjection} from 'ol/proj';
|
||||
import VectorTileSource from 'ol/source/VectorTile';
|
||||
import {Fill, Icon, Stroke, Style, Text} from 'ol/style';
|
||||
import TileGrid from 'ol/tilegrid/TileGrid';
|
||||
|
||||
|
||||
const key = 'pk.eyJ1IjoiYWhvY2V2YXIiLCJhIjoiRk1kMWZaSSJ9.E5BkluenyWQMsBLsuByrmg';
|
||||
|
||||
Reference in New Issue
Block a user