mln-rs-engine 0.0.22

Part of mln-rs, a MapLibre map renderer written in Rust. Depend on mln-rs instead.
Documentation
use std::sync::Arc;

use mln_style::crs::WorldMapping;
use mln_style::expression::GlobalStateMap;
use mln_style::subdivision_granularity::SubdivisionGranularitySetting;

use crate::map::MapMode;
use crate::tile::OverscaledTileID;

#[derive(Clone, Debug)]
pub struct BucketParameters {
    pub(crate) tile_id: OverscaledTileID,
    pub(crate) mode: MapMode,
    pub(crate) pixel_ratio: f32,
    /// The style's global state, used by "global-state" expressions.
    pub(crate) global_state: Option<Arc<GlobalStateMap>>,
    pub(crate) subdivision_granularity: SubdivisionGranularitySetting,
    /// The mapping of the map's world square, which the tile divides and
    /// `within` and `distance` take its features to lng/lat through.
    pub(crate) world: WorldMapping,
}