startRendering abstract method
- MapViewBase mapView
Starts visual navigation rendering.
A preconfigured current location marker is shown as soon as a location is received. The marker is chosen according to the transport mode specified in the route. If no route is present, the marker is chosen based on the NavigatorInterface.trackingTransportSpecification property. Calling startRendering() changes the MapCamera.principalPoint property so that the current position indicator is equal to the value from CameraBehavior.normalizedPrincipalPoint, in which by default places the principal point slightly at the bottom of the mapview. It is restored to its original value when stopRendering() is called. Note: When rendering is started again for a new map view instance, rendering is automatically stopped on the previous map view instance. Also note that the MapViewBase.frameRate can be lowered to reduce CPU usage, to adjust for tradeoffs between rendering smoothness versus battery consumption.
Note: For supported roads, a lane guidance experience is enabled once VisualNavigator starts rendering if the following conditions are met:
- the camera behavior is set to TransitionCameraBehavior
- one of the map schemes MapScheme.clusterDay, MapScheme.clusterNight, MapScheme.tunnel is loaded
- the user is authorized to use "lane guidance" feature
The lane guidance experience will be disabled when VisualNavigator stops rendering.
mapViewThe map view on which visual navigation will take place.
Implementation
void startRendering(MapViewBase mapView);