BaseMapViewModel
open class BaseMapViewModel(mapPrefs: MapPrefs, nodeRepository: NodeRepository, packetRepository: PacketRepository, radioController: RadioController) : ViewModel(source)
Shared base ViewModel for the map feature, providing node data, waypoints, map filter preferences, and traceroute overlay state.
Platform-specific map ViewModels (fdroid/google) extend this to add flavor-specific map provider logic.
Inheritors
Constructors
Link copied to clipboard
constructor(mapPrefs: MapPrefs, nodeRepository: NodeRepository, packetRepository: PacketRepository, radioController: RadioController)
Types
Link copied to clipboard
data class MapFilterState(val onlyFavorites: Boolean, val showWaypoints: Boolean, val showPrecisionCircle: Boolean, val lastHeardFilter: LastHeardFilter, val lastHeardTrackFilter: LastHeardFilter)
Properties
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
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.