View on GitHub

leaflet-city-mapper

A small 3D rendering engine for leaflet

Leaflet integration

Source guide Project README

Contains Leaflet compatibility hooks and camera-aware behavior for native map layers, markers, popups and tooltips. The public entry point installs these hooks.

Compatibility boundary

flowchart LR
  Entry["index.js"] --> Version{"Leaflet version"}
  Version -->|1| Prototype["Hook native layer prototype"]
  Version -->|2| Constructor["Compatible constructor + native prototype"]
  Prototype --> Router["Source routing"]
  Constructor --> Router
  Entry --> Overlays["Camera-aware markers / popups / grids"]

The public contract remains L.Layer, including instanceof. whenReady.js returns a registered readiness promise or resolves immediately when none exists; source errors belong to initializers.

Related: scene, camera, native.