pub struct OfflineTilePyramidRegionDefinition {
pub style_url: String,
pub bounds: LatLngBounds,
pub min_zoom: f64,
pub max_zoom: f64,
pub pixel_ratio: f32,
pub include_ideographs: bool,
}Expand description
An offline region that covers a rectangle of the map.
See mln_offline_tile_pyramid_region_definition in the
C API reference.
Fields§
§style_url: StringThe style whose resources the region holds. Maps use the region when they load the same style URL.
bounds: LatLngBounds§min_zoom: f64§max_zoom: f64INFINITY covers every zoom level that the style’s sources have.
pixel_ratio: f32The pixel ratio of the images to download, such as 2 for dense screens.
include_ideographs: boolWhether the region holds the glyphs of CJK ideographs.
Trait Implementations§
Source§impl Clone for OfflineTilePyramidRegionDefinition
impl Clone for OfflineTilePyramidRegionDefinition
Source§fn clone(&self) -> OfflineTilePyramidRegionDefinition
fn clone(&self) -> OfflineTilePyramidRegionDefinition
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 moreSource§impl Default for OfflineTilePyramidRegionDefinition
impl Default for OfflineTilePyramidRegionDefinition
Source§fn default() -> OfflineTilePyramidRegionDefinition
fn default() -> OfflineTilePyramidRegionDefinition
Returns the “default value” for a type. Read more
impl StructuralPartialEq for OfflineTilePyramidRegionDefinition
Auto Trait Implementations§
impl Freeze for OfflineTilePyramidRegionDefinition
impl RefUnwindSafe for OfflineTilePyramidRegionDefinition
impl Send for OfflineTilePyramidRegionDefinition
impl Sync for OfflineTilePyramidRegionDefinition
impl Unpin for OfflineTilePyramidRegionDefinition
impl UnsafeUnpin for OfflineTilePyramidRegionDefinition
impl UnwindSafe for OfflineTilePyramidRegionDefinition
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