pub struct RasterSource {
pub url: String,
pub max_zoom: Option<u8>,
pub neighbor_fetch: bool,
pub on_missing: OnMissing,
pub attribution: Option<String>,
}Expand description
RGBA raster tile pyramid (satellite imagery, pre-rendered
basemaps, …) consumed by the raster node as a canvas-sized
Raster. The host fetches the 3×3 neighbourhood per render and
stitches it onto the padded canvas, so downstream filters see
seamless pixels across tile borders.
Fields§
§url: StringXYZ URL template with {z}, {x}, {y} placeholders, a
TileJSON document URL (anything ending in .json), or a
PMTiles archive (anything ending in .pmtiles; local path or
http(s):// URL). PNG / WebP / JPEG tiles are sniffed from
content.
max_zoom: Option<u8>Highest zoom available from the source. Requests above this
zoom upsample from the ancestor at max-zoom.
neighbor_fetch: boolFetch the 8 neighbouring tiles and stitch them so the pad region has real pixels.
on_missing: OnMissingWhat a 404 within the zoom range means — transparent pixels, upsample from a parent, or fail the render.
attribution: Option<String>Explicit attribution. When absent, hosts inherit upstream
metadata (TileJSON attribution / PMTiles metadata).
Trait Implementations§
Source§impl Clone for RasterSource
impl Clone for RasterSource
Source§fn clone(&self) -> RasterSource
fn clone(&self) -> RasterSource
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more