LocalTracerouteMapProvider

val LocalTracerouteMapProvider: ProvidableCompositionLocal<@Composable (tracerouteOverlay: TracerouteOverlay?, tracerouteNodePositions: Map<Int, Position>, onMappableCountChanged: (Int, Int) -> Unit, modifier: Modifier) -> Unit>(source)

Provides an embeddable traceroute map composable that renders node markers and forward/return offset polylines for a traceroute result. Unlike LocalMapViewProvider, this does not include a Scaffold, AppBar, waypoints, location tracking, custom tiles, or any main-map features — it is designed to be embedded inside TracerouteMapScreen's scaffold.

On Desktop/JVM targets where native maps are not yet available, it falls back to a PlaceholderScreen.

Parameters:

  • tracerouteOverlay: The overlay with forward/return route node nums.

  • tracerouteNodePositions: Map of node num to position snapshots for the route nodes.

  • onMappableCountChanged: Callback with (shown, total) node counts.

  • modifier: Compose modifier for the map.