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,10 +1,10 @@
import Map from '../src/ol/Map.js';
import View from '../src/ol/View.js';
import {platformModifierKeyOnly} from '../src/ol/events/condition.js';
import GeoJSON from '../src/ol/format/GeoJSON.js';
import ExtentInteraction from '../src/ol/interaction/Extent.js';
import {Tile as TileLayer, Vector as VectorLayer} from '../src/ol/layer.js';
import {OSM, Vector as VectorSource} from '../src/ol/source.js';
import Map from 'ol/Map';
import View from 'ol/View';
import {platformModifierKeyOnly} from 'ol/events/condition';
import GeoJSON from 'ol/format/GeoJSON';
import ExtentInteraction from 'ol/interaction/Extent';
import {Tile as TileLayer, Vector as VectorLayer} from 'ol/layer';
import {OSM, Vector as VectorSource} from 'ol/source';
const vectorSource = new VectorSource({
url: 'data/geojson/countries.geojson',