From 49d513d6102e36e5250d64443a08a711d6e9d97e Mon Sep 17 00:00:00 2001 From: Erik van Sebille Date: Thu, 2 May 2024 14:13:30 +0200 Subject: [PATCH] Updating drifter icons to show sprite if data received within last 24 hours Because latency is much larger now that wadden drifters are set to 6 hour transmission frequency --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index c73ba62..663854c 100644 --- a/main.js +++ b/main.js @@ -297,7 +297,7 @@ class DrifterApp { let hourdiff = Math.floor((drawdate - t) / (60*60*1000)) let src = "marker.svg" - if ((hourdiff > 6) || (with_tx == false)) { + if ((hourdiff > 24) || (with_tx == false)) { src = "marker_notx.svg" } let mark = this.createMarker(colour, lat, lng, opacity, zindex, src);