convert into Hugo module theme
This commit is contained in:
parent
b07a2a6cf5
commit
04abc92ae5
98 changed files with 2137 additions and 15971 deletions
14
assets/js/render-meta-map.js
Normal file
14
assets/js/render-meta-map.js
Normal file
|
@ -0,0 +1,14 @@
|
|||
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));
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue