Skip to main content

MapConfig

Struct MapConfig 

Source
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: MapStyle

The map display style.

§user_location_visibility: MapVisibility

Whether 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: MapInteractivity

Whether the map is interactive (pan/zoom enabled).

§compass_visibility: MapVisibility

Whether to show the compass.

§scale_visibility: MapVisibility

Whether 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 Debug for MapConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<MapConfig> for Map

Source§

fn from(value: MapConfig) -> Self

Converts to this type from the input type.
Source§

impl NativeView for MapConfig

Source§

fn stretch_axis(&self) -> StretchAxis

Which axis (or axes) this view stretches to fill available space.
Source§

impl ViewConfiguration for MapConfig

Source§

type View = Map

The view type that this configuration produces.
Source§

fn render(self) -> Self::View

Renders this configuration into a view.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> IdentifiableExt for T

Source§

fn use_id<F, Id>(self, f: F) -> UseId<Self, F>
where F: Fn(&Self) -> Id, Id: Ord + Hash,

Wraps the value in a UseId with the provided identification function.
Source§

fn self_id(self) -> SelfId<Self>

Wraps the value in a SelfId, making the value serve as its own identifier.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more