diff --git a/prototype-2/lib.js b/prototype-2/lib.js index d64c6f7..501fb2e 100644 --- a/prototype-2/lib.js +++ b/prototype-2/lib.js @@ -79,3 +79,8 @@ export const alarmIcon = L.icon({ iconSize: iconSize.map((n) => n * 6), iconAnchor: iconSize, }); +export const windIcon = L.icon({ + iconUrl: "https://svgsilh.com/svg/44535.svg", + iconSize: iconSize.map((n) => n * 5), + iconAnchor: iconSize, +}); diff --git a/prototype-2/main.js b/prototype-2/main.js index c0a4216..565b922 100644 --- a/prototype-2/main.js +++ b/prototype-2/main.js @@ -5,6 +5,7 @@ import { oldPersonIcon, youngPersonIcon, alarmIcon, + windIcon, } from "./lib.js"; var map = L.map("map").setView([46.94863, 7.45164], 16); L.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png", { @@ -36,7 +37,7 @@ map.on("click", (e) => { } if (clickOrigin) { clickWind = e.latlng; - windMarker = L.marker(clickWind, { icon: alarmIcon }).addTo(map); + windMarker = L.marker(clickWind, { icon: windIcon }).addTo(map); triggerCloudCalculation(); return; } @@ -91,7 +92,7 @@ function updateTextnode(noPeople, noOldPeople, noYoungPeople) { document.getElementById("oldPeople").textContent = noOldPeople === undefined ? "Keine Personen > 75 Jahre betroffen" - : `${noOldPeople.length} Personen betroffen`; + : `${noOldPeople.length} Personen > 75 Jahre betroffen`; document.getElementById("youngPeople").textContent = noYoungPeople === undefined ? "Keine Personen < 10 Jahren betroffen"