Expand description
Style/runtime model for style-document-driven map construction.
This module provides a small engine-owned style runtime inspired by
MapLibre’s style system. It covers Rustial’s current source families and
a broader style-layer taxonomy, while lowering geometry-centric layers onto
the existing engine primitives (BackgroundLayer, HillshadeLayer,
TileLayer, VectorLayer, and ModelLayer).
Structs§
- Ambient
Light - Ambient light parameters.
- Background
Style Layer - Background layer style spec.
- Canvas
Source - Canvas source — georeferenced dynamic overlay driven by a
FrameProvider. - Circle
Style Layer - Circle layer style spec.
- Computed
Fog - Pre-computed fog parameters ready for GPU uniform upload.
- Computed
Lighting - Pre-computed lighting parameters ready for GPU uniform upload.
- Computed
Shadow - Pre-computed shadow parameters for the current frame.
- Computed
Sky - Pre-computed sky parameters ready for GPU uniform upload.
- Directional
Light - Directional (sun) light parameters.
- Fill
Extrusion Style Layer - Fill extrusion layer style spec.
- Fill
Style Layer - Fill layer style spec.
- FogConfig
- User-facing fog/atmosphere configuration.
- GeoJson
Source - In-memory vector feature source with optional point clustering.
- Heatmap
Style Layer - Heatmap layer style spec.
- Hillshade
Style Layer - Hillshade layer style spec.
- Image
Source - Image source lowered onto raster rendering.
- Layer
Transition State - Per-layer transition state for all transitionable paint properties.
- Light
Config - Top-level lighting configuration.
- Line
Style Layer - Line layer style spec.
- MapStyle
- Mutable runtime wrapper around a
StyleDocument. - Model
Source - In-memory model source.
- Model
Style Layer - Model layer style spec.
- Raster
Source - Raster tile source entry.
- Raster
Style Layer - Raster/tile layer style spec.
- Resolved
Transitions - Snapshot of all resolved transition values for a single layer.
- Shadow
Config - Shadow map configuration parameters.
- SkyConfig
- User-facing sky / atmosphere configuration.
- Style
Document - A style document containing source registry, ordered layers, and optional terrain source.
- Style
Eval Context - Runtime evaluation context for paint/layout values.
- Style
Eval Context Full - Extended evaluation context that carries per-feature mutable state alongside the current zoom level.
- Style
Layer Meta - Shared style-layer metadata.
- Symbol
Style Layer - Symbol layer style spec.
- Terrain
Source - Terrain source entry.
- Transition
Spec - Transition timing specification.
- Transitioning
- A single property undergoing a timed transition.
- Vector
Style Layer - Legacy generic vector style spec.
- Vector
Tile Source - Vector-tile-like feature source.
- Video
Source - Video source — georeferenced dynamic overlay driven by a
FrameProvider.
Enums§
- Lighting
Mode - Lighting mode controlling how lit shaders compute surface illumination.
- SkyType
- Rendering mode for the sky background.
- Style
Error - Style/runtime errors.
- Style
Layer - Supported style-layer variants.
- Style
Projection - Top-level style-owned projection selection.
- Style
Source - Source registry entry.
- Style
Source Kind - Enumerates style/runtime source families.
Traits§
- From
Feature State Property - Conversion from a
PropertyValuestored in feature-state to a concrete style value type. - Style
Interpolatable - Interpolation behaviour for style values.
Functions§
- atmospheric_
clear_ color - Blend
basetoward a slightly lifted “horizon” colour aspitchincreases past 0.25 rad. - circle_
style_ with_ state - Resolve a
CircleStyleLayer’s paint properties with per-feature state. - compute_
fog - Compute fog parameters from camera state and optional user config.
- compute_
lighting - Compute GPU-ready lighting parameters from the user config.
- compute_
shadow_ cascades - Compute cascade light-space matrices from the camera frustum and light direction.
- compute_
sky - Compute GPU-ready sky parameters from the user config.
- fill_
extrusion_ style_ with_ state - Resolve a
FillExtrusionStyleLayer’s paint properties with per-feature state. - fill_
style_ with_ state - Resolve a
FillStyleLayer’s paint properties with per-feature state. - heatmap_
style_ with_ state - Resolve a
HeatmapStyleLayer’s paint properties with per-feature state. - line_
style_ with_ state - Resolve a
LineStyleLayer’s paint properties with per-feature state. - symbol_
style_ with_ state - Resolve a
SymbolStyleLayer’s paint properties with per-feature state. - vector_
style_ with_ state - Resolve a
VectorStyleLayer’s paint properties with per-feature state.
Type Aliases§
- Raster
Source Factory - Factory for constructing a fresh raster tile source when a style document is applied.
- Style
Layer Id - A style layer identifier.
- Style
Source Id - A style source identifier.
- Style
Value - Type alias for backward compatibility.
- Terrain
Source Factory - Factory for constructing a fresh terrain elevation source when a style document is applied.
- Vector
Tile Source Factory - Factory for constructing a fresh streamed vector tile source when a style document is applied.