pub struct MapConfig {
pub region: Computed<Region>,
pub annotations: Computed<Vec<Annotation>>,
pub style: MapStyle,
pub user_location_visibility: MapVisibility,
pub user_location: Option<Computed<Option<Location>>>,
pub interactivity: MapInteractivity,
pub compass_visibility: MapVisibility,
pub scale_visibility: MapVisibility,
pub status: Option<Binding<MapStatus>>,
}Expand description
Configuration for the Map component.
Fields§
§region: Computed<Region>The region to display.
annotations: Computed<Vec<Annotation>>Annotations (pins) to display on the map.
style: MapStyleThe map display style.
user_location_visibility: MapVisibilityWhether to show the user’s current location.
user_location: Option<Computed<Option<Location>>>WaterKit location values rendered by portable map realizations.
Native realizations may use the platform location service when this is absent. Supplying it keeps camera following, the location marker, and horizontal-accuracy visualization driven by one reactive source.
interactivity: MapInteractivityWhether the map is interactive (pan/zoom enabled).
compass_visibility: MapVisibilityWhether to show the compass.
scale_visibility: MapVisibilityWhether to show the scale.
status: Option<Binding<MapStatus>>Caller-owned sink the realization reports its load lifecycle into.
None means the application is not observing status, and a realization
must not allocate one on its behalf.
Trait Implementations§
Source§impl NativeView for MapConfig
impl NativeView for MapConfig
Source§fn stretch_axis(&self) -> StretchAxis
fn stretch_axis(&self) -> StretchAxis
Which axis (or axes) this view stretches to fill available space.
Auto Trait Implementations§
impl !RefUnwindSafe for MapConfig
impl !Send for MapConfig
impl !Sync for MapConfig
impl !UnwindSafe for MapConfig
impl Freeze for MapConfig
impl Unpin for MapConfig
impl UnsafeUnpin for MapConfig
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