View on GitHub

leaflet-city-mapper

A small 3D rendering engine for leaflet

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.

Related: archives, cog, terrain, textures.