SDK JS
    Preparing search index...

    One decoded DEM tile, ready for MapLibre.

    data is consumed exactly once — MapLibre transfers an ImageBitmap to its worker (neutering it) and may transfer an ArrayBuffer likewise. On the bitmap path rgba carries the encoded grid the bitmap was minted from, so callers (the loader's LRU) can cache bytes and re-mint fresh bitmaps.

    interface DemTileResult {
        data: ArrayBuffer | ImageBitmap;
        rgba?: Uint8ClampedArray<ArrayBufferLike>;
    }
    Index

    Properties

    Properties

    data: ArrayBuffer | ImageBitmap

    The MapLibre-ready tile: an ImageBitmap (fast path) or PNG ArrayBuffer.

    rgba?: Uint8ClampedArray<ArrayBufferLike>

    Bitmap path only: the encoded RGBA grid behind data. Custom decoders returning a bitmap MUST include it — the loader's LRU and in-flight coalescer re-mint fresh bitmaps from these bytes (bitmaps are single-use: MapLibre transfers whatever it is handed).