Title & subtitle
Add up to two lines of text at the top of the map: a bold primary title and a smaller subtitle beneath it. Both overlay the map area without shrinking it — the projection and data fills remain unchanged.
Examples
Title and subtitle together
https://api.maproll.io/map.svg?scope=world&data=US:200,CN:150,IN:80,BR:60,RU:120&theme=dark&title=GDP%20per%20capita&subtitle=World%20Bank%202023
Title only
https://api.maproll.io/map.svg?scope=world&data=US:1&theme=light&title=Just%20a%20title
Title, subtitle, and logo stacked
https://api.maproll.io/map.svg?scope=world&data=US:200,CN:150,DE:95&theme=dark&title=GDP%20per%20capita&subtitle=World%20Bank%202023&logo=true
Parameters
| Param | Type | Default | Allowed | Notes |
|---|---|---|---|---|
title | string | — | Up to 120 characters | Rendered bold, centered, near the top of the map. |
subtitle | string | — | Up to 160 characters | Rendered smaller and lighter, directly below the title. Has no visible effect if title is absent. |
Notes
- Both parameters are optional. Omitting both produces a clean map with no text at the top.
subtitlewithouttitleis accepted by the API but produces no visible output — the subtitle row requires the title to establish the text block position.- Text is centered horizontally in all cases. Left/right alignment is not currently configurable.
- Title and subtitle overlay the map; they do not reserve space from the projection. On dense maps with data near the top edge, the text may overlap fills. Use
heightto add vertical room if needed. - Spaces must be URL-encoded as
%20(or+in query strings). Special characters should be percent-encoded. - Theme-aware colors are used for the text, so the title remains legible on both light and dark backgrounds.
Related
- Attribution & logo — bottom-of-map text overlays
- Legend — legend title (
legendTitle) and layout - Size & format — controlling map dimensions
GET /map.{svg,png}— full query parameter reference- POST /render/map — JSON body equivalent (
title,subtitlestring fields)