BaseMapViewModel
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
Types
Everything the map's filter sheet controls.
Properties
Connected radio's channel set (primary-channel frequency + LoRa config); used to prefill a Site Planner estimate.
Display units (metric/imperial) for distance/altitude/speed formatting across map surfaces. Tracks locale changes and the in-app units setting, because this ViewModel survives the configuration change either triggers.
Waypoint ids of foreign geofences the user opted in to crossing alerts for (see NotificationPrefs).
Whether the device currently has network connectivity, for the offline-basemap banner and (on the Google flavor) the auto-fallback in org.meshtastic.app.map.MapViewModel. Optimistically true until the first emission arrives, so the map never flashes an "offline" banner on cold start.
The nodes the map draws from.
Functions
True if the waypoint with id was created by this device (vs. received from another node over the mesh).
The standard wiring from a view model to MapFilterSheet.
Toggles by name rather than through decodeExcludedRoles, which drops names the current protobufs do not define. Decoding and re-encoding here would discard a role excluded by a newer build on every toggle.
Convenience extension that delegates to tracerouteNodeSelection using the VM's getNodeOrFallback.