Package-level declarations
Types
Shared base ViewModel for the map feature, providing node data, waypoints, map filter preferences, and traceroute overlay state.
Which nodes a map shows, and which of them draws on top.
Result of resolving a TracerouteOverlay's node nums into displayable Node instances.
Properties
The alpha a track's oldest end fades to: faint, never invisible, so its first point can still be seen and tapped.
How recently a node must have been heard for the map to pulse it.
Nodes closer than this on the ground share one marker, since no zoom level separates them. Matches the Apple client's MapColocation.spreadMeters.
Steps the fade is bucketed into where each step costs a prebuilt marker icon.
Wider than a stationary fix's GPS jitter, narrower than a walked block.
Functions
Whether lastHeard is recent enough to pulse.
Collapses each run of consecutive fixes that stays within radiusMeters of the run's first fix into one TrackRun. positions must be oldest-first, and so is the result.
Whether the map should switch itself onto an offline-capable basemap right now, with no toggle for the user to remember to flip.
What a stack's badge reads. Material 3 caps a badge's count at four characters.
Groups nodes that sit within spreadMeters of each other, so each spot draws as one marker.
Resolves traceroute overlay node nums into displayable Node instances. Snapshot positions (recorded at traceroute time) take priority over live positions from the node database.
Convenience extension that delegates to tracerouteNodeSelection using the VM's getNodeOrFallback.
The alpha at recency along the fade.
The TRACK_FADE_LEVELS bucket recency falls in, the newest point always in the top one.
The alpha every point in fade bucket level draws at.
Where each point of an oldest-first track sits between its oldest and newest fix in time, from 0 to 1, so a burst of fixes after a quiet hour reads as recent and the quiet hour as old. Measured across the track's own span, so a track that is old throughout still fades from end to end. When any time is unknown (null or not positive) or every time is the same, the track fades by its order instead.