pub struct MapProps {
pub lat: f64,
pub lon: f64,
pub span: f64,
pub marker: Option<Coord>,
}Expand description
Full props (realize). lat/lon seed the center (thereafter patched when the center is a
reactive source), while span and marker are fixed at build time.
Fields§
§lat: f64Center latitude in degrees.
lon: f64Center longitude in degrees.
span: f64Latitude/longitude delta covered by the viewport, in degrees (smaller = more zoomed in).
marker: Option<Coord>An optional pin dropped at (lat, lon).
Trait Implementations§
impl StructuralPartialEq for MapProps
Auto Trait Implementations§
impl Freeze for MapProps
impl RefUnwindSafe for MapProps
impl Send for MapProps
impl Sync for MapProps
impl Unpin for MapProps
impl UnsafeUnpin for MapProps
impl UnwindSafe for MapProps
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more