Advanced
Maps
MapLibre determinism, render flags, and Turf patterns.
Maps
RemotionUI spatial components use MapLibre GL JS and Turf for deterministic map animations.
Install
npx remotion-ui add map-flightDeterminism rules
interactive: false,fadeDuration: 0delayRender()until mapidleon load and per-frame updates- Turf for geodesic routes — do not hand-roll coordinate math
- Separate target route (line animation) from camera route (camera position)
Render flags
WebGL maps require ANGLE and single concurrency:
npx remotion render MapFlight out/map.mp4 --gl=angle --concurrency=1Components
| Component | Role |
|---|---|
map-canvas | Low-level MapLibre mount |
map-route | Animated line reveal |
map-markers | Circle + label layers |
map-flight | Full flyover scene |
See map-flight for the flagship example.