Stuff
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Kekskurse 2022-01-16 12:56:28 +01:00
parent ebc27882a9
commit 17e873a22f
Signed by: kekskurse
GPG key ID: 728ACCB59341E7E4

View file

@ -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.<br> 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"])
});
}