This file contains 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
/** | |
* Smooth moving my location marker arrow | |
* @param marker - marker itself | |
* @param newLatLng - new location to move | |
*/ | |
private fun changePositionSmoothly(marker: Marker?, newLatLng: LatLng) { | |
if (marker == null) { | |
return | |
} | |
val animation = ValueAnimator.ofFloat(0f, 100f) |
This file contains 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
/** | |
* Smooth rotating my location marker arrow | |
* @param marker - marker itself | |
* @param newBearing - new direction to rotate | |
*/ | |
private fun changeBearingSmoothly(marker: Marker?, newBearing: Float) { | |
if (marker == null) { | |
return | |
} | |
val animation = ValueAnimator.ofFloat(0f, 100f) |
NewerOlder