RoutingManager class

Internal manager for calculating and drawing routes on the map.

Constructors

RoutingManager(MapLibreMapController _controller)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addRoute({required LatLng start, required LatLng destination, required List<LatLng> waypoints, required bool optimize, required String profile, required String language, bool fitCamera = true}) Future<PowerMapRouteResult?>
Calculates and draws a route between start and destination.
clearRoutes() Future<void>
clearStepTurnArrows() Future<void>
Clears step turn arrow data (sets empty GeoJSON). Layers stay alive for instant reuse.
disposeStepTurnArrows() Future<void>
Fully removes step arrow layers and source. Call on route dismissal/disposal only.
drawSavedRoute(List<LatLng> geometry) → void
Redraws an existing geometry without calling the API again. Used for restoring the original path after stopping navigation.
drawStepTurnArrows({required List<PowerRouteStep> steps, required List<LatLng> routeGeometry, int? selectedStepIndex, int? currentStepIndex, int maxUpcomingCount = 3, double? distanceTraveled, double? zoom, String? belowLayerId}) Future<void>
Renders compact white sub-polyline turn arrows focused tightly at turn corners (Google Maps Style). Mutex-serialized: if called while a previous draw is in progress, waits for it to finish first.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited