MarkerAnimationEffect

Defines an animation effect that can be applied to a Marker.

Use the companion object factory methods to create predefined effects:

  • wiggle: Pendulum rotation effect (20° → -20° → 8° → -8° → 0°)

  • scale: Scale animation (default: from 0 to 1)

  • fade: Fade animation (default: from 0 to 1)

Effects can be customized with parameters:

  • scale(from, to): Custom scale range

  • fade(from, to): Custom fade range

Multiple effects can be combined by passing them as a list to Marker animation parameters.

Example:

Marker(
point = point,
appearAnimation = listOf(MarkerAnimationEffect.wiggle, MarkerAnimationEffect.scale),
disappearAnimation = listOf(MarkerAnimationEffect.fade)
)

Types

Link copied to clipboard
object Companion

Factory methods for creating marker animation effects.