RemotionUI

Map Route

Animated GeoJSON route line on a map.

PrimitiveMaps & deviceAdvanced

map-route30fps · 960×540
Install
$ npx remotion-ui@latest add map-route

Animates a GeoJSON line reveal on an existing MapLibre instance. Pair with map-canvas or map-flight.

Agent notes

Install first, then import the copied source component locally. AI guide →

Import
@/remotion/primitives/map-route
  • Use when: map scenes, routes, markers, and spatial storytelling.
  • Customize: map, route, progress, plus copied source for timing, layout, colors, and typography.
  • Rule: do not import this component from the remotion-ui npm package; it is copied into your project.

Usage

Example
import { MapRoute } from "@/remotion/primitives/map-route"; <MapRoute map={map} route={targetRoute} progress={0.5} />

API Reference

PropTypeDescription
map*Map | nullMapLibre map instance.
route*Feature<LineString>GeoJSON line to animate.
progressnumberRoute reveal progress 0–1.

Related