Use const in more places

This commit is contained in:
Maximilian Krög
2022-08-09 00:04:31 +02:00
parent bebf2db5ae
commit 5b8d810f80
18 changed files with 108 additions and 110 deletions

View File

@@ -190,17 +190,17 @@ function setLayerMapProperty(layer, map) {
* import TileLayer from 'ol/layer/Tile';
* import OSM from 'ol/source/OSM';
*
* var map = new Map({
* const map = new Map({
* view: new View({
* center: [0, 0],
* zoom: 1
* zoom: 1,
* }),
* layers: [
* new TileLayer({
* source: new OSM()
* })
* source: new OSM(),
* }),
* ],
* target: 'map'
* target: 'map',
* });
*
* The above snippet creates a map using a {@link module:ol/layer/Tile~TileLayer} to