Mercurial > lbo > hg > geohub
changeset 109:8409b5c263ae
livemap: Fix accuracy of live points
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Tue, 29 Dec 2020 19:22:15 +0100 |
parents | 68107e685890 |
children | 382018ee8bce |
files | assets/livemap.html |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/assets/livemap.html Sat Dec 26 09:04:16 2020 +0100 +++ b/assets/livemap.html Tue Dec 29 19:22:15 2020 +0100 @@ -58,10 +58,11 @@ fillOpacity: 0.1, radius: accuracy ? accuracy : 3, }; + // Show last locations as blue points. + addMarker(oldCoord.lat, oldCoord.lng, current_circle.getRadius()); current_circle.remove(); + current_circle = L.circle([lat, lng], currentCircleProps).addTo(mymap); - // Show last locations as blue points. - addMarker(oldCoord.lat, oldCoord.lng, accuracy); } function addMarker(lat, lng, accuracy) { const circleProps = {