Files
openlayers/examples/wms-tiled-wrap-180.js
Tim Schaub ad62739a6e Use blocked scoped variables
In addition to using const and let, this also upgrades our linter config and removes lint (mostly whitespace).
2018-01-12 00:50:30 -07:00

28 lines
612 B
JavaScript

import Map from '../src/ol/Map.js';
import View from '../src/ol/View.js';
import TileLayer from '../src/ol/layer/Tile.js';
import OSM from '../src/ol/source/OSM.js';
import TileWMS from '../src/ol/source/TileWMS.js';
const layers = [
new TileLayer({
source: new OSM()
}),
new TileLayer({
source: new TileWMS({
url: 'https://ahocevar.com/geoserver/ne/wms',
params: {'LAYERS': 'ne:ne_10m_admin_0_countries', 'TILED': true},
serverType: 'geoserver'
})
})
];
const map = new Map({
layers: layers,
target: 'map',
view: new View({
center: [0, 0],
zoom: 1
})
});