pub struct MapOptions {
pub initial_extent: LogicalExtent,
pub map_mode: MapMode,
pub fast_pfor_enabled: bool,
pub event_mask: Option<RuntimeEventFlag>,
pub tile_cache_enabled: Option<bool>,
}Expand description
Options for RuntimeHandle::create_map().
See mln_map_options in the
C API reference.
Fields§
§initial_extent: LogicalExtentThe map’s first size, and its scale factor. The scale factor stays fixed for the map’s life, and every render session of the map renders at it.
map_mode: MapMode§fast_pfor_enabled: boolWhether the map decodes MapLibre Tiles (MLT) that use FastPFOR integer encoding. Without it, such tiles fail to load.
event_mask: Option<RuntimeEventFlag>The events that the map reports. Without it, the map reports them all.
tile_cache_enabled: Option<bool>Whether the map keeps tiles in memory after they leave the view, so they show again without loading. Without it, the map keeps them.
Implementations§
Source§impl MapOptions
impl MapOptions
pub fn new(initial_extent: LogicalExtent) -> Self
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MapOptions
Source§impl Debug for MapOptions
impl Debug for MapOptions
Source§impl PartialEq for MapOptions
impl PartialEq 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 UnsafeUnpin 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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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