SharedMapViewModel
class SharedMapViewModel(mapPrefs: MapPrefs, nodeRepository: NodeRepository, packetRepository: PacketRepository, radioController: RadioController, radioConfigRepository: RadioConfigRepository, notificationPrefs: NotificationPrefs) : BaseMapViewModel(source)
Constructors
Link copied to clipboard
constructor(mapPrefs: MapPrefs, nodeRepository: NodeRepository, packetRepository: PacketRepository, radioController: RadioController, radioConfigRepository: RadioConfigRepository, notificationPrefs: NotificationPrefs)
Properties
Link copied to clipboard
Connected radio's channel set (primary-channel frequency + LoRa config); used to prefill a Site Planner estimate.
Link copied to clipboard
OS locale display units (metric/imperial) for distance/altitude/speed formatting across map surfaces. StateFlow kept for the existing collectAsState call sites; value is a one-time snapshot at construction and does not react to a mid-session locale change (ViewModel survives config changes).
Link copied to clipboard
Waypoint ids of foreign geofences the user opted in to crossing alerts for (see NotificationPrefs).
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
True if the waypoint with id was created by this device (vs. received from another node over the mesh).
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun BaseMapViewModel.tracerouteNodeSelection(tracerouteOverlay: TracerouteOverlay?, tracerouteNodePositions: Map<Int, Position>, nodes: List<Node>): TracerouteNodeSelection
Convenience extension that delegates to tracerouteNodeSelection using the VM's getNodeOrFallback.