pub struct EaseToOptions {
pub center: Option<GeoCoord>,
pub zoom: Option<f64>,
pub bearing: Option<f64>,
pub pitch: Option<f64>,
pub duration: f64,
pub easing: Option<fn(f64) -> f64>,
}Expand description
Options for the ease_to animation.
Simple linear interpolation of all camera properties over a fixed
duration, matching MapLibre’s easeTo.
Fields§
§center: Option<GeoCoord>Target geographic center.
zoom: Option<f64>Target zoom level.
bearing: Option<f64>Target bearing (yaw) in radians.
pitch: Option<f64>Target pitch in radians.
duration: f64Duration in seconds. Default: 0.5.
easing: Option<fn(f64) -> f64>Easing function. Default: cubic-bezier(0.25, 0.1, 0.25, 1.0).
Trait Implementations§
Source§impl Clone for EaseToOptions
impl Clone for EaseToOptions
Source§fn clone(&self) -> EaseToOptions
fn clone(&self) -> EaseToOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EaseToOptions
impl Debug for EaseToOptions
Auto Trait Implementations§
impl Freeze for EaseToOptions
impl RefUnwindSafe for EaseToOptions
impl Send for EaseToOptions
impl Sync for EaseToOptions
impl Unpin for EaseToOptions
impl UnsafeUnpin for EaseToOptions
impl UnwindSafe for EaseToOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more