pub struct TileStyleOptions {
pub kind: Option<TileKind>,
pub tile_size: Option<u32>,
pub scheme: Option<String>,
pub minzoom: Option<u8>,
pub maxzoom: Option<u8>,
pub attribution: Option<String>,
pub source_layers: Option<Vec<String>>,
pub paint: Map<String, Value>,
}Expand description
Overrides for crate::tile_style(); unset fields are detected or left to
MapLibre’s defaults.
Fields§
§kind: Option<TileKind>Raster or vector; detected when unset.
tile_size: Option<u32>Tile size in px (raster default 256 for tile URLs and archives).
scheme: Option<String>"xyz" or "tms".
minzoom: Option<u8>§maxzoom: Option<u8>§attribution: Option<String>§source_layers: Option<Vec<String>>Vector: the source layers to draw (default: all).
paint: Map<String, Value>Vector: paint properties for the generated fill-*, line-* and
circle-* layers, e.g. {"fill-color": "#e8e0d8"}.
Trait Implementations§
Source§impl Clone for TileStyleOptions
impl Clone for TileStyleOptions
Source§impl Debug for TileStyleOptions
impl Debug for TileStyleOptions
Auto Trait Implementations§
impl Freeze for TileStyleOptions
impl RefUnwindSafe for TileStyleOptions
impl Send for TileStyleOptions
impl Sync for TileStyleOptions
impl Unpin for TileStyleOptions
impl UnsafeUnpin for TileStyleOptions
impl UnwindSafe for TileStyleOptions
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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