CoolFace
Apppublic

VitaYee/watchzones-safe-polygons-explorer

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
16 commits on main
0604e7d1y ago

only bulawatch instead of watchzone

VitaYee
629af271y ago

<!DOCTYPE html>

VitaYee
f17a9221y ago

remove this

VitaYee
16cd7f51y ago

/ --- Accuracy helpers --- let lastGoodFix = null; // { lat, lng, accuracy, ts } let positionMarker = null; let accuracyCircle = null; function remember(lat, lng, accuracy) { lastGoodFix = { lat, lng, accuracy, ts: Date.now() }; } function drawPosition(lat, lng, accuracy) { if (positionMarker) map.removeLayer(positionMarker); if (accuracyCircle) map.removeLayer(accuracyCircle); positionMarker = L.marker([lat, lng], { draggable: false }) .addTo(map) .bindPopup(`You are here

VitaYee
3f81a321y ago

1) Add these helpers (near the top of your <script>, with the other globals)

VitaYee
206dfc21y ago

Manual changes saved

VitaYee
32774b21y ago

Manual changes saved

VitaYee
4b4c9ff1y ago

<script>

VitaYee
12b87471y ago

Accuracy expectations (what’s realistic)

VitaYee
7e647641y ago

document.getElementById('btn-sos').onclick = async () => {

VitaYee
41b9bd71y ago

document.getElementById('btn-sos').onclick = async () => {

VitaYee
98ec0091y ago

let lastGoodFix = null;

VitaYee
fb117bc1y ago

<script>

VitaYee
e39fb101y ago

<!DOCTYPE html>

VitaYee
3a36eb81y ago

<!DOCTYPE html>

VitaYee
c5efaab1y ago

initial commit

VitaYee