HUD & Overlays
Add heads-up displays (HUD), text overlays, and information panels to enhance your map animations.
Quick Enable
Enable all default HUD elements with a single flag:
{
"hud": true
} Custom HUD Configuration
{
"hud": {
"stats": {
"show_distance": true,
"show_time": true,
"vehicle_speed_kmh": 80,
"position": "top-right"
},
"progress_bar": true,
"minimap": true,
"distance_markers": {
"interval_km": 1000
}
}
} Stats Panel
Display real-time distance and time statistics:
| Property | Type | Default | Description |
|---|---|---|---|
show_distance | boolean | true | Show distance traveled |
show_time | boolean | true | Show estimated time |
vehicle_speed_kmh | number | 35 (ship), 80 (truck) | Speed for time calculation |
position | enum | top-left | Panel position |
Position Options
top-lefttop-rightbottom-leftbottom-right
Progress Bar
Show a progress bar indicating route completion:
{
"hud": {
"progress_bar": true
}
} Minimap
Display a small overview map showing the full route:
{
"hud": {
"minimap": true
}
} Distance Markers
Show markers at regular intervals along the route:
{
"hud": {
"distance_markers": {
"interval_km": 500
}
}
} Text Overlays
Add custom text overlays at specific times during the video:
{
"text_overlays": [
{
"text": "Global Shipping Routes 2026",
"position": "top-center",
"start_time": 0,
"end_time": 4,
"font_size": 48,
"font_color": "#FFFFFF",
"background": "rgba(0,0,0,0.7)",
"animation": "fade"
},
{
"text": "Source: Maritime Analysis",
"position": "bottom-right",
"start_time": 8,
"font_size": 24,
"animation": "slide-up"
}
]
} Text Overlay Properties
| Property | Type | Required | Description |
|---|---|---|---|
text | string | required | Text content (max 200 chars) |
position | enum | required | Position on screen |
start_time | number | optional | When to show (seconds) |
end_time | number | optional | When to hide (seconds, omit for end of video) |
font_size | number | optional | Font size (8-200) |
font_color | string | optional | Text color (hex) |
background | string | optional | Background color (rgba) |
animation | enum | optional | Entrance animation |
Text Positions
top-left,top-center,top-rightcenterbottom-left,bottom-center,bottom-right
Text Animations
fade- Fade in/outslide-up- Slide in from belownone- Instant appear/disappear
Complete Example
{
"waypoints": [...],
"hud": {
"stats": {
"show_distance": true,
"show_time": true,
"position": "top-right"
},
"progress_bar": true
},
"text_overlays": [
{
"text": "Suez Canal Blockage: Impact on Global Trade",
"position": "top-center",
"start_time": 0,
"end_time": 5,
"font_size": 36,
"animation": "fade"
},
{
"text": "12,000 km added to shipping route",
"position": "bottom-center",
"start_time": 8,
"font_size": 28,
"font_color": "#FF6B6B",
"animation": "slide-up"
}
]
} Tip: Use text overlays to add context, data points, or source citations
that help viewers understand what they're seeing.