Files
openlayers/examples/stamen.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

27 lines
554 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 {fromLonLat} from '../src/ol/proj.js';
import Stamen from '../src/ol/source/Stamen.js';
const map = new Map({
layers: [
new TileLayer({
source: new Stamen({
layer: 'watercolor'
})
}),
new TileLayer({
source: new Stamen({
layer: 'terrain-labels'
})
})
],
target: 'map',
view: new View({
center: fromLonLat([-122.416667, 37.783333]),
zoom: 12
})
});