Skip to content

Instantly share code, notes, and snippets.

@utsmannn
Created June 24, 2020 10:58
Show Gist options
  • Save utsmannn/7db70afa143bbf478d4ed3d72248bcf9 to your computer and use it in GitHub Desktop.
Save utsmannn/7db70afa143bbf478d4ed3d72248bcf9 to your computer and use it in GitHub Desktop.
fun moveMarkerSmoothly(marker: Marker, newLatLng: LatLng) {
val animator: ValueAnimator = movementAnimator(marker, newLatLng)
animator.start()
val f = getAngle(marker.position, newLatLng).toFloat()
rotateMarker(marker, f)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment