From 81b51360d8fcd56663dc5f49f81e8e548e31d0df Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Tue, 12 Sep 2023 00:17:40 +0200 Subject: [PATCH] fix initial opacity --- htdocs/map.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/map.js b/htdocs/map.js index 33fe8d74..ed7cdcff 100644 --- a/htdocs/map.js +++ b/htdocs/map.js @@ -152,7 +152,7 @@ $(function(){ marker.setOptions($.extend({ position: pos, title: sourceToString(update.source) - }, aprsOptions, getMarkerOpacityOptions(update.lastseen) )); + }, aprsOptions, getMarkerOpacityOptions(update.lastseen, update.location.ttl) )); marker.source = update.source; marker.lastseen = update.lastseen; marker.mode = update.mode; @@ -212,7 +212,7 @@ $(function(){ west: lon, east: lon + 2 } - }, getRectangleOpacityOptions(update.lastseen) )); + }, getRectangleOpacityOptions(update.lastseen, update.location.ttl) )); if (expectedLocator && expectedLocator === update.location.locator) { map.panTo(center);