15 lines
435 B
JavaScript
15 lines
435 B
JavaScript
|
import * as params from '@params';
|
||
|
import L from 'leaflet';
|
||
|
|
||
|
var map = L.map('map').setView([55, -3], 13);
|
||
|
|
||
|
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
||
|
maxZoom: 19,
|
||
|
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>'
|
||
|
}).addTo(map);
|
||
|
|
||
|
var lonLats = [];
|
||
|
params.locations.forEach((location) => {
|
||
|
lonLats.push(L.marker([location.lat, location.lon]).addTo(map));
|
||
|
});
|