diff --git a/tasks/flightradar24/frontend/static/index.html b/tasks/flightradar24/frontend/static/index.html index 31a74be..3b7cfaa 100644 --- a/tasks/flightradar24/frontend/static/index.html +++ b/tasks/flightradar24/frontend/static/index.html @@ -62,16 +62,11 @@ L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { maxZoom: 18, }).addTo(map); -// plane SVG icon, rotated by heading +// plane icon rotated by heading function planeIcon(heading) { const deg = heading || 0; - const svg = ` - - `; return L.divIcon({ - html: svg, + html: `
`, className: '', iconSize: [24, 24], iconAnchor: [12, 12], @@ -103,7 +98,7 @@ function closePopup() { async function refresh() { try { - const res = await fetch('/api/aircraft/live?minutes=10'); + const res = await fetch('/api/aircraft/live?minutes=60'); if (!res.ok) throw new Error('HTTP ' + res.status); const geojson = await res.json(); const features = geojson.features || [];