changePosition
fun changePosition( location: Location, keyPoints: List<Location> = emptyList(), latLngTransitionOptions: ValueAnimator.() -> Unit? = null, bearingTransitionOptions: ValueAnimator.() -> Unit? = null)
Content copied to clipboard
Provide the location update that puck should transition to.
See also
Parameters
location
the location update
keyPoints
a list (can be empty) of predicted location points leading up to and including the target update. The last point on the list (if not empty) should always be equal to location.
latLngTransitionOptions
lambda that style that position transition of the puck. See LocationConsumer.onLocationUpdated.
bearingTransitionOptions
lambda that style that bearing transition of the puck. See LocationConsumer.onBearingUpdated.