The OpenLayers community provides many great examples on this page: https://openlayers.org/en/latest/examples/index.html
On each example there is a copy button to copy the code. But in this copied code they have imports like:
import Feature from 'ol/Feature.js';
import Map from 'ol/Map.js';
import View from 'ol/View.js';
import Polyline from 'ol/format/Polyline.js';
import Point from 'ol/geom/Point.js';
import {Tile as TileLayer, Vector as VectorLayer} from 'ol/layer.js';
import BingMaps from 'ol/source/BingMaps.js';
import VectorSource from 'ol/source/Vector.js';
import {Circle as CircleStyle, Fill, Icon, Stroke, Style} from 'ol/style.js';
Sorry for the maybe stupid question:
Where do I get this *.js
files from?
How can I get quickly the examples to run on my local machine?