mirror of
https://github.com/pablorevilla-meshtastic/meshview.git
synced 2026-10-30 18:51:57 +01:00
change packet reach activity
This commit is contained in:
1 parent
f4fbf16e4f
commit
ef37a910b9
1 file changed
+5
-1
@@ -908,7 +908,7 @@ function blinkNode(marker,longName,portnum,payload){
|
||||
|
||||
const blinkStart = Date.now();
|
||||
const tooltipDurationMs = 5000;
|
||||
const blinkDurationMs = 15000;
|
||||
const blinkDurationMs = map.hasLayer(packetSeenLayer) ? 15000 : tooltipDurationMs;
|
||||
const fastBlinkStartMs = blinkDurationMs - 3000;
|
||||
const blinkColor = "yellow";
|
||||
const safeName = escapeHtml(longName);
|
||||
@@ -932,6 +932,10 @@ function blinkNode(marker,longName,portnum,payload){
|
||||
|
||||
marker.tooltip = tooltip;
|
||||
const tooltipTimeout = setTimeout(() => {
|
||||
if(blinkDurationMs === tooltipDurationMs){
|
||||
clearBlinkForMarker(marker);
|
||||
return;
|
||||
}
|
||||
if(marker.tooltip){
|
||||
map.removeLayer(marker.tooltip);
|
||||
marker.tooltip = null;
|
||||
|
||||
Reference in new issue
Block a user