#[repr(C)]pub struct MapTileLayer {
pub url_template: AzString,
pub min_zoom: u8,
pub max_zoom: u8,
pub attribution: AzString,
pub style_css: AzString,
}Expand description
Configuration of one map tile layer — usually the base raster /
vector layer. Additional layers (heatmaps, custom GeoJSON) compose
as further MapWidget instances stacked atop.
Fields§
§url_template: AzString{z} / {x} / {y} placeholders are substituted at fetch
time. Matches Leaflet’s tileLayer(url_template).
min_zoom: u8Minimum integer zoom this layer supports.
max_zoom: u8Maximum integer zoom this layer supports.
attribution: AzStringAttribution string the user MUST display (ODbL “© OpenStreetMap contributors” or similar). Most providers require it.
style_css: AzStringMapCSS-style stylesheet driving per-layer fill / stroke /
stroke-width. Empty = use the built-in default palette. Each
rule is selector { fill: …; stroke: …; stroke-width: …; }
where the selector’s trailing token is matched against the MVT
layer name (e.g. water { fill: #9ecae1; }, .buildings { … }).
Parsed by azul_dll::desktop::extra::map’s tile decoder.
Trait Implementations§
Source§impl Clone for MapTileLayer
impl Clone for MapTileLayer
Source§fn clone(&self) -> MapTileLayer
fn clone(&self) -> MapTileLayer
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MapTileLayer
impl Debug for MapTileLayer
Source§impl Default for MapTileLayer
impl Default for MapTileLayer
Source§impl PartialEq for MapTileLayer
impl PartialEq for MapTileLayer
Source§fn eq(&self, other: &MapTileLayer) -> bool
fn eq(&self, other: &MapTileLayer) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MapTileLayer
Auto Trait Implementations§
impl Freeze for MapTileLayer
impl RefUnwindSafe for MapTileLayer
impl Send for MapTileLayer
impl Sync for MapTileLayer
impl Unpin for MapTileLayer
impl UnsafeUnpin for MapTileLayer
impl UnwindSafe for MapTileLayer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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