CargoCanvas / Examples / 3D tilt

3D tilt

True perspective over Curitiba. The ground is a WebGLTileLayer: tiles are selected per frame against the camera frustum, so the far field near the horizon uses coarser zoom levels — watch the street detail fade into district-level tiles as you raise the pitch. The route and markers are ordinary DOM layers, kept aligned by the same camera and billboarded so they stay upright and constant-size. Besides the slider, you can fly the camera Mapbox-style: drag with the right pointer button — or hold Ctrl and drag — moving vertically to tilt and horizontally to rotate.

50°

What to notice

Scope, honestly. This is a perspective view of a flat world — the classic map-GL ground plane. There is no terrain elevation, no 3D buildings, and no tilt gesture yet; pitch is set programmatically, as this page does. Zoom snaps rather than animating while pitched.
Why the UMD build? Loading it as a classic script is what lets this page work when opened straight from disk. In an application with a bundler, install the package and import the classes instead — everything after that line is identical:
import {CargoMap, WebGLTileLayer, Marker, Polyline, Popup} from 'cargocanvas';