Interface: CameraAnimation
The options to animate the update of the map camera. Controls how smoothly the camera transitions to its new position.
Example
const animationOptions: CameraAnimation = {
animate: true,
duration: 2000, // 2 seconds
}Properties
animate?
optional animate: boolean;If false, no animation will occur and the camera will jump instantly to the new position. If
omitted, defaults to true.
Default Value
true
Example
animate: true // Smooth transition
animate: false // Instant jumpduration?
optional duration: number;The animation’s duration, measured in milliseconds. Higher values create slower, more gradual transitions.
Default Value
1000
Example
duration: 500 // Fast transition (0.5 seconds)
duration: 2000 // Slow transition (2 seconds)
duration: 1000 // Default transition (1 second)Last updated on