Created
June 24, 2020 10:58
-
-
Save utsmannn/7db70afa143bbf478d4ed3d72248bcf9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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