View on GitHub

leaflet-city-mapper

A small 3D rendering engine for leaflet

Controls

Source guide Project README

Implements camera interaction handlers for dragging, touch, compass and container resizing, including listener setup and cleanup.

Input to camera state

flowchart LR
  Input["Drag / touch / compass / resize"] --> Handler["Leaflet handler"]
  Handler --> Camera["Camera state + events"]
  Touch["Camera touch enabled"] --> Disable["Save and disable native touch zoom"]
  Disable --> End["Camera touch disabled"]
  End --> Restore["Restore previous touch zoom state"]

camera validates and owns the angles. Pair add/remove hooks for listeners and preserve native touch-zoom coordination.

Related: camera, animations.