mirror of
https://expo.survex.com/repositories/expoweb/.git/
synced 2024-12-18 14:32:23 +00:00
19 lines
380 B
JavaScript
19 lines
380 B
JavaScript
import './style.css';
|
|
import Map from '/javascript/ol/Map.js';
|
|
import OSM from '/javascript/ol/source/OSM.js';
|
|
import TileLayer from '/javascript/ol/layer/Tile.js';
|
|
import View from '/javascript/ol/View.js';
|
|
|
|
const map = new Map({
|
|
target: 'map',
|
|
layers: [
|
|
new TileLayer({
|
|
source: new OSM(),
|
|
}),
|
|
],
|
|
view: new View({
|
|
center: [0, 0],
|
|
zoom: 2,
|
|
}),
|
|
});
|