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 TopoJSON from '../src/ol/format/TopoJSON.js';
import {Tile as TileLayer, Vector as VectorLayer} from '../src/ol/layer.js';
import TileJSON from '../src/ol/source/TileJSON.js';
import VectorSource from '../src/ol/source/Vector.js';
import {Fill, Stroke, Style} from '../src/ol/style.js';
import Map from 'ol/Map';
import View from 'ol/View';
import TopoJSON from 'ol/format/TopoJSON';
import {Tile as TileLayer, Vector as VectorLayer} from 'ol/layer';
import TileJSON from 'ol/source/TileJSON';
import VectorSource from 'ol/source/Vector';
import {Fill, Stroke, Style} from 'ol/style';
const raster = new TileLayer({