Raster
| Source guide | Project README |
Selects, loads and retains raster tiles for the current view, creating meshes and optionally attaching imagery to terrain. Parent tiles provide interim coverage.
View-driven tile lifecycle
flowchart LR
View["Map view + archive header"] --> Select["Select zoom + wanted tiles"]
Select --> Fallback["Retain coarser parent coverage"]
Select --> Queue["Queue tile loads"]
Queue --> Mesh["Attach image / terrain mesh"]
Mesh --> Fade["Fade in"]
Fade --> Prune["Release obsolete coverage"]
Fallback tiles remain while wanted tiles are pending or fading; horizon views are capped at 169 tiles. Loading emits tile and loading events. COG uses an archive-compatible adapter.
- initRaster.js: initialize a raster layer.
- updateRasterTiles.js: select wanted and fallback tiles.
- pruneRasterTiles.js: release tiles no longer needed.