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: '© OpenStreetMap' }).addTo(map); var lonLats = []; params.locations.forEach((location) => { lonLats.push(L.marker([location.lat, location.lon]).addTo(map)); });