RemotionUI
Spatial

Map Route

Animated GeoJSON route line on a map.

PrimitivespatialAdvanced

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.

AI usage

Install first, then import the copied source component locally.

AI guide

Install

npx remotion-ui@latest add map-route

Import after install

@/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

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