View on GitHub

leaflet-city-mapper

A small 3D rendering engine for leaflet

Layer controls

Source guide Project README

Manages layer control entry placement and loading or feature-count status.

Status follows the layer

flowchart LR
  Progress["Progress event / source areas"] --> Count["Loaded + pending + errors"]
  Count --> Status["Render layer status"]
  Layer["Layer added"] --> Entry["Place status under control entry"]
  Entry --> Changes["Reposition on layer changes"]
  Changes --> Remove["Remove listener when layer leaves"]

Status reflects source progress, not GPU frame completion. Placement may fail when no layers control lists the layer; loading must remain independent of it.

Related: scene, sources.