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

This commit is contained in:
Kekskurse 2022-01-16 12:51:37 +01:00
parent ebe3adb991
commit 8ae4307866
Signed by: kekskurse
GPG key ID: 728ACCB59341E7E4

View file

@ -15,7 +15,7 @@
<div id="map"></div>
<script>
var map = L.map('map').setView([51.505, -0.09], 18);
var map = L.map('map').setView([51.505, -0.09], 5);
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map);
@ -26,7 +26,7 @@
fetch('/json')
.then(response => response.json())
.then(data => {
map.setView([data["lat"], data["lon"]], 18);
map.setView([data["lat"], data["lon"]], 5);
circle.setLatLng([data["lat"], data["lon"]])
circle.setRadius(data["acc"])
});