Skip to content

Commit

Permalink
Updating drifter icons to show sprite if data received within last 24…
Browse files Browse the repository at this point in the history
… hours

Because latency is much larger now that wadden drifters are set to 6 hour transmission frequency
  • Loading branch information
erikvansebille committed May 2, 2024
1 parent 219bd72 commit 49d513d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 49d513d

Please sign in to comment.