Map animation knowledge for Remotion. The skill asks the agent to choose exactly one technique from the intended shot and then load only that technique’s guide: a static locator image, Mapbox GL JS, MapLibre GL JS, MapTiler, or CesiumJS.
Each guide gives working code for deterministic rendering, including route animation with Turf, markers and labels as GeoJSON layers, camera moves, render stability checks, and the Remotion CLI flags for WebGL map renders.
What You Get
- A selection guide that names the key requirement and strength of each technique
- Full Mapbox and MapLibre flight-route examples with great-circle lines, route reveal and camera moves
- Core rules for deterministic renders: frame-driven animation, delayRender around map loads, non-interactive maps and no remove() cleanup
- A MapTiler guide with a vector versus custom GeoJSON decision table
- A CesiumJS flythrough guide with landscape and city modes, credentials setup and camera behavior
- A Node.js script that turns a river or route GeoJSON line into a smooth camera path
Common Use Cases
- Animating a flight route between two cities with a following camera
- Showing a location as a fixed map image with labels
- Highlighting borders or rivers on a map for a geographic explainer
- Flying over mountains or a city in 3D for a travel or documentary video
What Makes It Unique
It splits map work into five techniques and tells the agent to load only one, which keeps the in-use cost low. It addresses problems specific to rendering maps in video, such as shimmer from per-frame camera moves, missing layers from an undefined filter, and the need to verify rendered pixels at every aspect ratio, and it asks for provider attribution and the source of disputed geography to be recorded.
Under The Hood
The skill is instructions and code samples, plus one Node.js script for the Cesium technique. The script reads a GeoJSON file from disk, clips, resamples and smooths a line, and writes a JSON path file; it makes no network calls. The agent is told to install packages such as mapbox-gl, maplibre-gl and @turf/turf with the project’s package manager, to run remotion render with WebGL flags, and to write composition files. The compositions fetch map tiles, styles and a MapLibre worker script from the network at render time, and the Mapbox, MapTiler and Google options need the user’s own API keys placed in source files.