Highlight a few regions
The simplest useful request. You name regions and give each one a color. Everything else takes the map default.
{
"mapId": "united-states",
"regions": {
"US-CA": "#1D4ED8",
"US-TX": "#F59E0B",
"New York": "#10B981"
},
"title": {
"text": "Where we operate"
},
"style": {
"labels": {
"show": true
}
},
"output": {
"width": 1200
}
}curl https://api.ultimaps.com/v1/renders \
-H "Content-Type: application/json" \
-d '{
"mapId": "united-states",
"regions": {
"US-CA": "#1D4ED8",
"US-TX": "#F59E0B",
"New York": "#10B981"
},
"title": {
"text": "Where we operate"
},
"style": {
"labels": {
"show": true
}
},
"output": {
"width": 1200
}
}' \
-o map.png
- Region keys are flexible. "US-CA", "California" and "CA" all reach the same region.
- Colors are hex strings. Regions you leave out keep the theme default.
- "style.labels.show" prints every region name. There is no way to label only the regions you colored.


