pub struct MapTileOptions {
pub prefetch_zoom_delta: Option<u32>,
pub lod_min_radius: Option<f64>,
pub lod_scale: Option<f64>,
pub lod_pitch_threshold: Option<f64>,
pub lod_zoom_shift: Option<f64>,
pub lod_mode: Option<TileLodMode>,
}Expand description
How the map picks the tiles to load.
The lod_ members lower the level of detail away from the camera, so the
map loads fewer tiles when the pitch is high.
See mln_map_tile_options in the
C API reference.
Fields§
§prefetch_zoom_delta: Option<u32>How many zoom levels lower the map also loads tiles for, so it can show a coarse map while the current tiles load. 0 loads only the current tiles.
lod_min_radius: Option<f64>The radius around the view point, in tiles, that keeps full detail.
lod_scale: Option<f64>Scales the distance to the view point. Above 1 lowers the detail.
lod_pitch_threshold: Option<f64>The pitch, in degrees, above which the map lowers the detail.
lod_zoom_shift: Option<f64>Zoom levels to add for picking the detail. Below 0 loads fewer tiles.
lod_mode: Option<TileLodMode>TileLodMode::Distance ignores lod_min_radius.
Trait Implementations§
Source§impl Clone for MapTileOptions
impl Clone for MapTileOptions
Source§fn clone(&self) -> MapTileOptions
fn clone(&self) -> MapTileOptions
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 MapTileOptions
Source§impl Debug for MapTileOptions
impl Debug for MapTileOptions
Source§impl Default for MapTileOptions
impl Default for MapTileOptions
Source§fn default() -> MapTileOptions
fn default() -> MapTileOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for MapTileOptions
impl PartialEq for MapTileOptions
impl StructuralPartialEq for MapTileOptions
Auto Trait Implementations§
impl Freeze for MapTileOptions
impl RefUnwindSafe for MapTileOptions
impl Send for MapTileOptions
impl Sync for MapTileOptions
impl Unpin for MapTileOptions
impl UnsafeUnpin for MapTileOptions
impl UnwindSafe for MapTileOptions
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