pub struct ProviderOptions {
pub kind: Option<TileKind>,
pub api_key: Option<String>,
pub tiles: Option<String>,
pub labels: Labels,
pub features: Option<Vec<String>>,
}Expand description
Options for basemap_provider.
Fields§
§kind: Option<TileKind>Vector style or raster tiles; default the vector form when there is one.
api_key: Option<String>API key; default from the provider’s environment variable.
tiles: Option<String>Tile data to draw instead of the provider’s own (a .pmtiles archive,
tile URL or TileJSON, by URL or path), keeping its style. It must use
the same schema (source layers and fields) as the provider’s tiles.
labels: LabelsKeep every layer, drop the labels, or keep only the labels. Raster tiles switch to the provider’s label-free or label-only tiles.
features: Option<Vec<String>>Feature filter for the vector form (see crate::features).
Trait Implementations§
Source§impl Clone for ProviderOptions
impl Clone for ProviderOptions
Source§impl Debug for ProviderOptions
impl Debug for ProviderOptions
Auto Trait Implementations§
impl Freeze for ProviderOptions
impl RefUnwindSafe for ProviderOptions
impl Send for ProviderOptions
impl Sync for ProviderOptions
impl Unpin for ProviderOptions
impl UnsafeUnpin for ProviderOptions
impl UnwindSafe for ProviderOptions
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