Maps SDK for Web
IAnimationOptions
Options common to map movement methods that involve animation, such as Map easeTo(), controlling the duration and easing function of the animation. All properties are optional.
Properties
animate: Boolean
If
false
, no animation will occur.
duration: Number
The animation's duration, measured in milliseconds.
easing: Function
A function taking a time in the range 0..1 and returning a number where
0 is the initial state and 1 is the final state.
essential: Boolean
If
true
, then the animation is considered essential and will not be affected by
prefers-reduced-motion
.
offset: Maps.Point | Array
Offset of the target center relative to a real map container center at the end of animation.
Can be either Point or an array of numbers.