animateMarkerTo

open fun animateMarkerTo(marker: Marker, finalPosition: LatLng)

Animates a marker from it's current position to the provided finalPosition

Parameters

marker

marker to animate

finalPosition

the final position of the marker after the animation


open fun animateMarkerTo(marker: Marker, finalPosition: LatLng, durationInMs: Long)

Animates a marker from its current position to the provided finalPosition.

Parameters

marker

marker to animate

finalPosition

the final position of the marker after the animation

durationInMs

the duration of the animation in milliseconds