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:
Frederic Junod
2018-11-26 15:47:08 +01:00
parent 4b784f06e9
commit 79c8afdba8
165 changed files with 990 additions and 990 deletions

View File

@@ -1,11 +1,11 @@
import Geolocation from '../src/ol/Geolocation.js';
import Map from '../src/ol/Map.js';
import Overlay from '../src/ol/Overlay.js';
import View from '../src/ol/View.js';
import LineString from '../src/ol/geom/LineString.js';
import TileLayer from '../src/ol/layer/Tile.js';
import {fromLonLat} from '../src/ol/proj.js';
import OSM from '../src/ol/source/OSM.js';
import Geolocation from 'ol/Geolocation';
import Map from 'ol/Map';
import Overlay from 'ol/Overlay';
import View from 'ol/View';
import LineString from 'ol/geom/LineString';
import TileLayer from 'ol/layer/Tile';
import {fromLonLat} from 'ol/proj';
import OSM from 'ol/source/OSM';
// creating the view
const view = new View({