updateLocation

open fun updateLocation(location: Location)

Updates the location icon on the map and way name data (if found)for the given Location.

NavigationMapboxMap automatically listens to onNewMapMatcherResult when a progress observeris subscribed with addProgressChangeListener and invoking this method in that scenario will lead to competing updates.

Parameters

location

to update the icon and query the map

open fun updateLocation(location: Location, animationDuration: Long)

Updates the location icon on the map and way name data (if found)for the given Location.

NavigationMapboxMap automatically listens to onNewMapMatcherResult when a progress observeris subscribed with addProgressChangeListener and invoking this method in that scenario will lead to competing updates.

Parameters

location

to update the icon and query the map

animationDuration

specifies the duration of the transition animation.A default duration is used if the provided value is null.See animationDuration

open fun updateLocation(locations: List<Location>)

This method can be used to provide the list of locations where the last one is the targetand the rest are intermediate points used as the animation path.The puck and the camera will be animated between each of the points linearly until reaching the target.

NavigationMapboxMap automatically listens to onNewMapMatcherResult when a progress observeris subscribed with addProgressChangeListener and invoking this method in that scenario will lead to competing updates.

Parameters

locations

the path to update the location icon

open fun updateLocation(locations: List<Location>, animationDuration: Long)

This method can be used to provide the list of locations where the last one is the targetand the rest are intermediate points used as the animation path.The puck and the camera will be animated between each of the points linearly until reaching the target.

NavigationMapboxMap automatically listens to onNewMapMatcherResult when a progress observeris subscribed with addProgressChangeListener and invoking this method in that scenario will lead to competing updates.

Parameters

locations

the path to update the location icon

animationDuration

specifies the duration of the transition animation.A default duration is used if the provided value is null.See animationDuration

open fun updateLocation(location: Location, intermediateLocations: List<Location>, animationDuration: Long)

This method can be used to provide the target locationand a list of intermediate points used as the animation path.The puck and the camera will be animated between each of the points linearly until reaching the target.

NavigationMapboxMap automatically listens to onNewMapMatcherResult when a progress observeris subscribed with addProgressChangeListener and invoking this method in that scenario will lead to competing updates.

Parameters

location

the target position

intermediateLocations

points that lead up to the target position for animation purposes

animationDuration

specifies the duration of the transition animation.A default duration is used if the provided value is null.See animationDuration