mlt-wasm 0.1.21

WebAssembly bindings for the MapLibre Tile (MLT) format
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use mlt_core::{GeometryValues, TileLayer};

/// All per-layer state owned by [`crate::tile::MltTile`].
///
/// Fully decoded at `decode_tile` time - no lazy loading.
pub(crate) struct DecodedLayer {
    pub(crate) tile: TileLayer,

    /// MVT geometry types (0/1/2/3) - collapses single and multi variants.
    pub(crate) types_array: js_sys::Uint8Array,

    /// Original MLT geometry types - preserves the single vs multi distinction.
    pub(crate) mlt_types_array: js_sys::Uint8Array,

    pub(crate) geometry: GeometryValues,
}