mlt-wasm 0.1.1

WebAssembly bindings for the MapLibre Tile (MLT) format
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use js_sys::Float64Array;
use mlt_core::v01::OwnedEncodedId;

/// Tracks the decode state of a layer's feature-ID column.
pub(crate) enum IdState {
    /// Layer has no ID column.
    Absent,
    /// Raw encoded bytes, not yet decoded.
    Encoded(OwnedEncodedId),
    /// Decoded and converted to a JS-owned typed array ready to return.
    /// One `f64` per feature; absent IDs are `NaN`.
    Ready(Float64Array),
}