pub struct Marker {
pub position: LngLat,
pub title: String,
pub color: Color,
pub subtitle: String,
pub tag: String,
}Expand description
A pin on the map at a position, with an optional title shown beside it and a tag the app uses to know it again when it is tapped.
Fields§
§position: LngLat§title: String§color: Color§subtitle: StringSecondary annotation text, supplied by the app.
tag: StringThe app’s own key for this marker (an item id, a route key), handed back through
MapView::marker when MapView::tap names it; not shown.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Marker
Auto Trait Implementations§
impl Forget for Marker
impl Freeze for Marker
impl Move for Marker
impl RefUnwindSafe for Marker
impl Send for Marker
impl Sync for Marker
impl Unpin for Marker
impl UnsafeUnpin for Marker
impl UnwindSafe for Marker
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