ReadonlydataThe MapLibre-ready tile: an ImageBitmap (fast path) or PNG ArrayBuffer.
Optional ReadonlyrgbaBitmap 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).
One decoded DEM tile, ready for MapLibre.
datais consumed exactly once — MapLibre transfers anImageBitmapto its worker (neutering it) and may transfer anArrayBufferlikewise. On the bitmap pathrgbacarries the encoded grid the bitmap was minted from, so callers (the loader's LRU) can cache bytes and re-mint fresh bitmaps.