-
public class AnimationUtilAnimation utilities for markers with Maps API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceAnimationUtil.LatLngInterpolatorFor other LatLngInterpolator interpolators, see link here
-
Field Summary
Fields Modifier and Type Field Description public final static AnimationUtilINSTANCE
-
Method Summary
Modifier and Type Method Description final static UnitanimateMarkerTo(Marker marker, LatLng finalPosition, Long durationInMs)Animates a marker from its current position to the provided finalPosition. final static UnitanimateMarkerTo(Marker marker, LatLng finalPosition)Animates a marker from its current position to the provided finalPosition. -
-
Method Detail
-
animateMarkerTo
@JvmOverloads() final static Unit animateMarkerTo(Marker marker, LatLng finalPosition, Long durationInMs)
Animates a marker from its current position to the provided finalPosition.
- Parameters:
marker- marker to animatefinalPosition- the final position of the marker after the animationdurationInMs- the duration of the animation in milliseconds
-
animateMarkerTo
@JvmOverloads() final static Unit animateMarkerTo(Marker marker, LatLng finalPosition)
Animates a marker from its current position to the provided finalPosition.
- Parameters:
marker- marker to animatefinalPosition- the final position of the marker after the animation
-
-
-
-