From 17e873a22f32380ab8d18a6be75fd5137179028c Mon Sep 17 00:00:00 2001 From: kekskurse Date: Sun, 16 Jan 2022 12:56:28 +0100 Subject: [PATCH] Stuff --- notfall.tmpl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/notfall.tmpl b/notfall.tmpl index 345711f..0fabe00 100644 --- a/notfall.tmpl +++ b/notfall.tmpl @@ -21,6 +21,9 @@ }).addTo(map); circle = L.circle([50.5, 30.5], {radius: 200}).addTo(map); + marker = L.marker([51.5, -0.09]).addTo(map) + .bindPopup('A pretty CSS3 popup.
Easily customizable.') + .openPopup(); function update() { fetch('/json') @@ -28,6 +31,8 @@ .then(data => { map.setView([data["lat"], data["lon"]], 18); circle.setLatLng([data["lat"], data["lon"]]) + marker.setLatLng([data["lat"], data["lon"]]) + marker.bindPopup(data["tst"]) circle.setRadius(data["acc"]) }); }