pub struct MapOptions {
pub zoom_control: Option<bool>,
pub scroll_wheel_zoom: Option<bool>,
pub double_click_zoom: Option<bool>,
pub touch_zoom: Option<bool>,
pub dragging: Option<bool>,
pub keyboard: Option<bool>,
pub attribution_control: Option<bool>,
pub tile_layer: Option<TileLayer>,
}Expand description
Map configuration options
Fields§
§zoom_control: Option<bool>§scroll_wheel_zoom: Option<bool>§double_click_zoom: Option<bool>§touch_zoom: Option<bool>§dragging: Option<bool>§keyboard: Option<bool>§attribution_control: Option<bool>§tile_layer: Option<TileLayer>Implementations§
Source§impl MapOptions
impl MapOptions
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new MapOptions with all fields set to None (minimal configuration)
Sourcepub fn zoom_control(&self) -> bool
pub fn zoom_control(&self) -> bool
Gets the zoom control setting, falling back to default if None
Sourcepub fn scroll_wheel_zoom(&self) -> bool
pub fn scroll_wheel_zoom(&self) -> bool
Gets the scroll wheel zoom setting, falling back to default if None
Sourcepub fn double_click_zoom(&self) -> bool
pub fn double_click_zoom(&self) -> bool
Gets the double click zoom setting, falling back to default if None
Sourcepub fn touch_zoom(&self) -> bool
pub fn touch_zoom(&self) -> bool
Gets the touch zoom setting, falling back to default if None
Sourcepub fn attribution_control(&self) -> bool
pub fn attribution_control(&self) -> bool
Gets the attribution control setting, falling back to default if None
Sourcepub fn tile_layer(&self) -> TileLayer
pub fn tile_layer(&self) -> TileLayer
Gets the tile layer, falling back to default if None
Trait Implementations§
Source§impl Clone for MapOptions
impl Clone for MapOptions
Source§fn clone(&self) -> MapOptions
fn clone(&self) -> MapOptions
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 MapOptions
impl Debug for MapOptions
Source§impl Default for MapOptions
impl Default for MapOptions
Source§impl<'de> Deserialize<'de> for MapOptions
impl<'de> Deserialize<'de> for MapOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MapOptions
impl PartialEq for MapOptions
Source§impl Serialize for MapOptions
impl Serialize for MapOptions
impl StructuralPartialEq for MapOptions
Auto Trait Implementations§
impl Freeze for MapOptions
impl RefUnwindSafe for MapOptions
impl Send for MapOptions
impl Sync for MapOptions
impl Unpin for MapOptions
impl UnwindSafe for MapOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Source§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.