RemotionUI
Guides

Maps

MapLibre determinism, render flags, and Turf patterns.

RemotionUI spatial components use MapLibre GL JS and Turf for deterministic map animations.

Install

Install
$ npx remotion-ui@latest add map-flight

Determinism rules

  • interactive: false, fadeDuration: 0
  • delayRender() until map idle on 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:

Render
$ npx remotion render src/Root.tsx MapFlight out/map.mp4 --gl=angle --concurrency=1

Components

ComponentRole
map-canvasLow-level MapLibre mount
map-routeAnimated line reveal
map-markersCircle + label layers
map-flightFull flyover scene

See map-flight for the flagship example.

On this page