MPDirectionsRenderer
This allows for an easy way to display a route on the MapsIndoors map. Each leg of the route can be shown individually and can be navigated by manipulating the selected leg index. Various customization options are available to adjust the polyline styling and camera behavior.
Functions
Reports that the user has finished with the current route.
Returns the effective directions renderer config: the runtime override merged over the solution-served config, or null when neither is set.
Returns the options most recently applied via setOptions, or null if only the individual (deprecated) setters have been used.
Gets the currently selected leg's floor index.
Checks whether the route leg buttons are enabled or disabled
Selects the previous leg if possible. Once the first leg is reached, further use of this method is idempotent
Manually set the selected leg index, on the set route. This may throw an exception if the resulting internal state is invalid (parsed index is out of bounds)
Enable/Disable the polyline animation, when displaying a route element on the map
Set the duration of camera animations (ms). If a duration < 0 then camera animations are disabled, and the camera will move instantly. Default is 1000 ms
Set the fit mode of the camera, when displaying route elements on the map. The camera may be aligned to north, aligned with the first step, aligned from start point to end point.
Set the camera tilt. The camera may be set in a tilting position, when displaying route elements on the map. Default is 0
Applies a directions renderer route-styling config at runtime. The runtime config takes precedence over the solution-served config — field by field for line and halo, and whole-block for every other section. If a route is already displayed it is re-styled in place.
Set the default icon for route stops
Overrides the default label for middle steps in a route.
Set a listener, which will be invoked when a new leg has been selected
Apply a set of style and behaviour options to the renderer.
Set the color of the displayed polyline
Enable/Disable the route end/start buttons from showing on the route.
If set, we will show labels and icons from nearby Locations as additional contextual information about the end positions of the rendered route segment. Set this to null if you want to turn off this feature again.