techniques/static-map/TECHNIQUE.md
View on GitHub---
name: remotion-maps-static
description: Create a deterministic static locator map in Remotion when neither the camera nor geographic data animates.
---
# Static map
Use a static image when the map only provides location context. This is the smallest, fastest, and
most deterministic map technique.
## Build
1. Export or request a map image at the composition's final aspect ratio and at least its rendered
pixel dimensions.
2. Store the image in the Remotion project's `public/` directory.
3. Render it with `CanvasImage` and `staticFile()`.
4. Add labels or markers as ordinary Remotion elements if they remain fixed.
```tsx
import React from 'react';
import {AbsoluteFill, CanvasImage, staticFile} from 'remotion';
export const StaticMap: React.FC = () => {
return (
<>
<CanvasImage
src={staticFile('locator-map.png')}
style={{width: '100%', height: '100%', objectFit: 'cover'}}
/>
</>
);
};
```
## Overlays and Interactivity
Follow Remotion Interactivity (`remotion-interactivity` skill) best practices and Remotion Markup Best practices (`remotion-markup` skill) for elements.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |