MTAnimationOptions

@Serializable
data class MTAnimationOptions(val duration: Double? = null, val animate: Boolean? = null, val essential: Boolean? = null, val offset: MTPoint? = null)

Options describing the animation of the transition.

Constructors

constructor(duration: Double? = null, animate: Boolean? = null, essential: Boolean? = null, offset: MTPoint? = null)

Properties

val animate: Boolean? = null

If false, no animation will occur.

val duration: Double? = null

The animation's duration, measured in milliseconds.

val essential: Boolean? = null

If true, then the animation is considered essential and will not be affected by prefers-reduced-motion.

val offset: MTPoint? = null

The center of the given bounds relative to the map's center, measured in pixels.