Every change Wellknown observed on this MCP server, newest first, with what it was before and what it became. Tool-surface changes carry the definition diff. Nothing here is edited after the fact.
Changed the definition of "render_map"
⟨24 unchanged words⟩ by category, with a legend, a title, a subtitle, a source line and pins. Borders come from real geographic data, ⟨221 unchanged words⟩ available: pins (`locations` with lat/lon), `title` (`align`: Left · Center · Right), `subtitle` (follows the title) and `source` (always bottom-left), `legend` (position, `title`, `subtitle`), `style` ( ⟨98 unchanged words⟩ "litres per person") in the legend title. When the data has a known origin, send it as `source.text` ("Source: US Census Bureau, 2024"), not in `legend.subtitle`. `dryRun: true` validates and previews region matching ⟨135 unchanged words⟩
before
{"additionalProperties":false,"properties":{"categories":{"additionalProperties":false,"description":"Categorical coloring mode. Mutually exclusive with `choropleth`. Unmatched keys simply leave their regions uncolored. The no-data fill is `style.defaultRegionColor`, and `noDataColor` does not apply here.\n","properties":{"colors":{"additionalProperties":{"examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"description":"Optional category name to color. Names are matched exactly and case-sensitively against the names in `values` (unlike region keys, which are matched loosely). An entry for a category no region uses is silently ignored. Unlisted categories get a color from a built-in categorical palette, assigned in order of first appearance in `values`, so pin the colors if you need stable output.\n","type":"object"},"values":{"additionalProperties":{"minLength":1,"type":"string"},"description":"Region key to category name.","maxProperties":5000,"minProperties":1,"type":"object"}},"required":["values"],"type":"object"},"choropleth":{"additionalProperties":false,"description":"Numeric choropleth mode. Mutually exclusive with `categories` (one scale per map). `regions` composes with it as an override layer. If none of the keys in `values` match, the request fails even under `onUnmatched: warn`, since there is nothing to build a scale from. `type`, `classes`, `method` and `palette` are all optional: whatever you leave out is suggested from the data, and the resolved plan is reported in the result. Do send `kind` whenever you know what the numbers are, `midpoint` when they have a meaningful center, and a short `unit`: the values alone cannot tell 42% from 0.42 or a change from a level.","properties":{"classes":{"description":"Number of classes. Absent = suggested from the data (5 base, more for skewed distributions). Explicit counts are honored exactly, capped only by the number of unique values. Tied values can still collapse duplicate quantile edges, and a constant dataset collapses to one class. `dryRun` returns the breaks and effective class count that will actually be drawn.\n","maximum":9,"minimum":2,"type":"integer"},"format":{"additionalProperties":false,"description":"Number format for every choropleth surface: class labels, gradient ticks and value labels. Always pass an object, e.g. {\"preset\": \"compact\"}, never a bare string. Presets: `auto` (default, inferred from magnitude), `plain` (39,538,223), `compact` (39.5M), `percent` (the input is a FRACTION, so 0.42 prints as 42% and 0.423 as 42.3%, because the preset trims trailing zeros. An explicit {\"style\": \"percent\", \"decimals\": 1} keeps them and prints 42.0%. For data already in percent points use {\"suffix\": \"%\"}), `currency` ($39,538,223). Or combine options, e.g. {\"decimals\": 1, \"suffix\": \"M\"} or {\"style\": \"currency\", \"currency\": \"EUR\"}. {\"d3\": \"~s\"} is a raw d3-format escape hatch. Add \"locale\" for a non-US number style: \"de-DE\" (1.234,5 / 1,2 Mio.), \"fr-FR\" (1 234,5), \"es-ES\", \"it-IT\", \"pt-BR\", \"de-CH\" (1’234.5), \"en-IN\" (12,34,567 / 12L), \"nl-NL\", \"pl-PL\", \"sv-SE\"; it combines with presets and d3, and {\"locale\": \"de-DE\"} alone is the automatic format in that style. The result echoes the resolved format.","properties":{"compact":{"description":"Compact notation: K/M/B/T (never SI \"G\").","type":"boolean"},"currency":{"default":"USD","description":"ISO-4217 code, rendered with its Intl symbol (\"€\", \"CA$\"). Only valid with style \"currency\".\n","pattern":"^[A-Za-z]{3}$","type":"string"},"d3":{"description":"Escape hatch: a raw d3-format spec. Invalid grammar is a 400.\n","maxLength":20,"type":"string"},"decimals":{"description":"Fraction digits. Min equals max, for uniform labels, unless `trim` is set.","maximum":6,"minimum":0,"type":"integer"},"grouping":{"default":true,"description":"Thousands separators.","type":"boolean"},"locale":{"default":"en-US","description":"Number style: separators, currency placement and compact suffixes. `{\"decimals\": 1, \"locale\": \"de-DE\"}` turns 1234567.5 into \"1.234.567,5\"; with `compact: true` it gives \"1,2 Mio.\". Combines with `preset` and `d3`; on its own (`{\"locale\": \"de-DE\"}`) it is the automatic format in that number style.\n","enum":["en-US","de-DE","fr-FR","es-ES","it-IT","pt-BR","de-CH","en-IN","nl-NL","pl-PL","sv-SE"],"type":"string"},"prefix":{"description":"Literal, inserted AFTER any leading sign (\"-€1,234\", never \"€-1,234\").\n","maxLength":12,"type":"string"},"preset":{"description":"Alias for the bare-string preset form.","enum":["auto","plain","compact","percent","currency"],"type":"string"},"sign":{"default":"auto","description":"Maps 1:1 to Intl signDisplay. \"exceptZero\" is the usual choice for diverging legends.\n","enum":["auto","always","exceptZero"],"type":"string"},"significantDigits":{"maximum":6,"minimum":1,"type":"integer"},"style":{"default":"decimal","description":"\"percent\" MULTIPLIES BY 100. The input is a fraction (0.42 prints as \"42%\"). Data already in percent points should use `suffix: \"%\"` instead.\n","enum":["decimal","percent","currency"],"type":"string"},"suffix":{"description":"Literal, e.g. \" per km²\".","maxLength":20,"type":"string"},"trim":{"description":"Strip trailing zeros.","type":"boolean"}},"type":"object"},"kind":{"description":"What the numbers are. Send it whenever you know. `percent` = already ×100 (42 prints \"42%\"), `fraction` = a 0–1 share (0.42 prints \"42%\"), `currency` (set `unit` to the code, e.g. \"EUR\"), `year` (1788, no separator), `change` (signed labels, diverging around 0), or `count`, `rate`, `index`. Once a kind is given, the palette is diverging only with `midpoint` or `kind: \"change\"`, so data that merely dips below zero stays sequential.","enum":["count","rate","percent","fraction","currency","change","year","index"],"type":"string"},"legendEndLabels":{"description":"Steps legends: also print the two outer ends of the bar (ignored for groups and gradient legends). An end that the automatic breaks left open, or that the data reaches past, reads \"< 10\" / \"≥ 90\" rather than a round bound the data never reaches. Groups legends already print every range and gradients their ends, so only steps change. Default false.\n","type":"boolean"},"method":{"description":"Break method. Absent = round, publishable edges picked from the data (a constant step such as 0 · 10 · 20 · 30, or a 1-2-5 ladder such as 0 · 10K · 25K · 50K · 100K for skewed data), reported as `pretty`. quantile = equal number of regions per class, equalInterval = equal-width value intervals, jenks = natural breaks (minimal within-class variance), pretty = rounded human-readable edges. Additive-only enum: more methods may be added, none removed.\n","enum":["quantile","equalInterval","jenks","pretty"],"type":"string"},"midpoint":{"description":"The meaningful center of the data: 0 for a change or balance, 100 for an index where 100 is the reference (EU27 = 100), 1 for a ratio. Gives a diverging palette with its neutral color on this value. Leave it out for one-directional data.","type":"number"},"noData":{"additionalProperties":false,"description":"Adds a \"No data\" row to the legend for regions without a value: true, or {\"label\": \"Not reported\"}. Off unless you send it. Send it whenever your data does not cover the whole map (the result reports how many regions have no value); without it those regions are drawn in a gray the legend does not explain. With full coverage the row is left out. A `nodata_low_contrast` warning means the default fill for those regions is hard to tell from the palette (gray palettes): send `noDataColor`.","properties":{"label":{"maxLength":40,"minLength":1,"type":"string"}},"type":["boolean","object"]},"noDataColor":{"description":"Fill for regions absent from `values`. Choropleth mode only. Overrides `style.defaultRegionColor` when both are set. When neither is set, the theme's region color is used if it stays apart from the palette (CIEDE2000 ≥ 12 from the lightest class, ≥ 8 from every class) or is transparent by design; otherwise a light, slightly theme-tinted gray that does and keeps the region borders visible, so missing data never reads as the lowest class or as the neutral of a diverging palette. Gray palettes can leave no such color: the theme color is then darkened and a `nodata_low_contrast` warning asks for an explicit `noDataColor`.\n","examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"palette":{"description":"ColorBrewer palette id (the server matches case-insensitively). Absent = suggested: `rdbu` centered on `midpoint` when one is given (or `kind` is `change`); with no hints, `rdbu` centered on 0 when the values spread on both sides of zero; sequential blues otherwise. Sequential palettes suit one-directional data, and diverging palettes (rdbu, brbg, spectral, piyg, prgn, puor, rdgy, rdylbu) suit data around a midpoint.\n","enum":["gnbu","bugn","bupu","orrd","pubu","pubugn","purd","rdpu","ylgn","ylgnbu","ylorbr","ylorrd","blues","greens","greys","oranges","purples","reds","rdbu","brbg","spectral","piyg","prgn","puor","rdgy","rdylbu"],"type":"string"},"type":{"default":"auto","description":"Visualization type. `auto` picks from the data: ≤7 unique values → `groups` (discrete legend items), skewed distributions → `steps` (contiguous bar with break ticks), else `gradient` (continuous color scale). Explicit values pin the type. `gradient` and `steps` legends are horizontal-only: they render in a top/bottom band (default bottom), and a left/right `legend.position` is coerced to bottom with a warning. That rule depends on the data, so JSON Schema cannot express it and generated SDKs should not try to enforce it.\n","enum":["auto","gradient","steps","groups"],"type":"string"},"unit":{"description":"Short unit printed on every label, up to 16 characters: \"%\", \"°C\", \"t\", \"km²\". Put long units (\"litres of pure alcohol per person\") in `legend.title` instead. With `kind: \"currency\"` it is the currency code or symbol. Ignored for `kind: \"fraction\"` and when `format` is set, except {\"locale\": \"de-DE\"} (or {\"preset\": \"auto\", \"locale\": \"de-DE\"}), which keeps kind and unit in that number style. An explicit `format` decides only the labels: `kind` and `midpoint` still decide sequential vs diverging.","maxLength":16,"minLength":1,"type":"string"},"values":{"additionalProperties":{"type":"number"},"description":"Region key to numeric value. Keys go through the matching rules described above. Two keys resolving to the same region count as two matched keys, and the later value wins.\n","maxProperties":5000,"minProperties":1,"type":"object"}},"required":["values"],"type":"object"},"dryRun":{"default":false,"description":"Validate and preview without rendering: returns the region matching report, the resolved choropleth plan and a legend preview. No image and no monthly quota for keyed calls, but it still counts against the rate limit (one of the anonymous renders per hour without a key).","type":"boolean"},"layers":{"additionalProperties":false,"description":"Extra geographic layers to draw, e.g. {\"cities\": true, \"roads\": true}. Each map ships a subset (`layers` in list_maps and get_map_regions). Turning on a layer the map lacks is not an error: it is skipped with a `layer_unavailable` warning. Omitted layers are off, except layers a map turns on by default (currently `admin0` on ZIP-code maps); pass false to hide those.","properties":{"admin0":{"description":"Surrounding land, as a filled area of neighboring countries or states.","type":"boolean"},"admin0-mesh":{"description":"Country borders (mesh).","type":"boolean"},"admin1":{"description":"Surrounding states as a filled area (US ZIP-code maps, where `admin0` is the map's own land).","type":"boolean"},"admin1-mesh":{"description":"First-level subdivision borders (states, provinces, regions).","type":"boolean"},"admin1-mesh-inner":{"description":"State borders drawn over the map's own regions (county and ZIP maps, where `admin1-mesh` covers the surroundings only).","type":"boolean"},"admin2-mesh":{"description":"Second-level subdivision borders (counties, districts).","type":"boolean"},"cities":{"description":"Major cities as labeled points.","type":"boolean"},"lakes":{"description":"Major lakes.","type":"boolean"},"rivers":{"description":"Major rivers.","type":"boolean"},"roads":{"description":"Major roads.","type":"boolean"}},"type":"object"},"legend":{"additionalProperties":false,"properties":{"items":{"description":"Manual legend items, for regions-only maps. With `choropleth` or `categories` the legend is auto-generated and `items` is rejected with 400.\n","items":{"additionalProperties":false,"properties":{"color":{"examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"label":{"maxLength":120,"minLength":1,"type":"string"}},"required":["label","color"],"type":"object"},"maxItems":50,"minItems":1,"type":"array"},"position":{"description":"left/right take a column carved from the map area (180 px, widened up to 260 px for long labels or a legend title, at most 30% of the width); top/bottom take a horizontal band between the title and the map. Absent = picked per render: inside the map over empty space (sea, the margin beside a narrow map) when the legend fits there clear of land, else gradient/steps go to the bottom band and item/group legends to the left column or the bottom band, whichever leaves the map larger. Leave it out unless you need the legend outside the map. Gradient and steps legends are horizontal-only, so left/right becomes bottom with a warning. Band items wrap into rows; a bar too wide for a narrow image is reported as a `legend_overflow` warning.","enum":["left","right","top","bottom"],"type":"string"},"show":{"description":"Defaults to true whenever a legend exists (auto-generated for `choropleth`/`categories`, or from `legend.items`). Set false to suppress it and give the whole canvas to the map.\n","type":"boolean"},"subtitle":{"description":"Line under the legend title, at the label size in the regular weight, e.g. the source or the base year. Same wrapping as `title`.\n","maxLength":160,"minLength":1,"type":"string"},"title":{"description":"Heading above the legend rows. Send one for every data legend: what is measured, its unit and the year, e.g. \"Median household income (US$, 2023)\". It is never derived from `choropleth.unit`: short units (\"%\", \"°C\") go in `unit` and print on every label, long ones belong here. Long titles wrap to fit the legend; `\\n` forces a break.","maxLength":120,"minLength":1,"type":"string"}},"type":"object"},"locations":{"description":"Pin markers. They compose with every mode.","items":{"additionalProperties":false,"properties":{"color":{"examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"labelPosition":{"default":"bottom","description":"Where the pin's label sits relative to the pin.","enum":["top","bottom","left","right"],"type":"string"},"lat":{"maximum":90,"minimum":-90,"type":"number"},"lon":{"maximum":180,"minimum":-180,"type":"number"},"showLabel":{"default":true,"description":"Set false to render this pin without its label (the marker stays).\n","type":"boolean"},"title":{"maxLength":120,"minLength":1,"type":"string"}},"required":["title","lat","lon"],"type":"object"},"maxItems":200,"type":"array"},"mapId":{"description":"Map id from list_maps, e.g. `world`, `united-states`, `europe`, `united-states-california`. It is the map's slug on ultimaps.com (the last path segment, not the whole URL) and always resolves to the current edition.","examples":["united-states"],"maxLength":120,"minLength":1,"type":"string"},"onUnmatched":{"default":"warn","description":"warn = render anyway (unmatched regions get the no-data fill) and report. error = 400 with per-key suggestions. Recommended for production pipelines: error. Exception: in choropleth mode, ZERO matched keys is a 400 even under warn. Region keys in `style.labels.hide` count too: a typo there is a 400 under error.\n","enum":["warn","error"],"type":"string"},"output":{"additionalProperties":false,"description":"Image size and format. Keep the default width (1200 px) for images viewed in the conversation: much larger renders, and any scale of 2 or more, are too big to show inline and are returned as a link instead. Without an API key: width up to 1600 px, an explicit height up to 1600 px, scale 1. Hard caps: width×scale and height×scale ≤ 8192, and at most 4096×4096 pixels in total.","properties":{"format":{"default":"png","description":"`png` (default) or `svg`. `svg` works only with an API key that allows it, and is returned as a link; otherwise export SVG in Ultimaps Studio. PDF is not available.","enum":["png","svg"],"type":"string"},"height":{"description":"Optional. When omitted, derives as a snug fit: the map's aspect ratio applied to the map area that remains after the title band (50 px) and any left/right legend column take their cut. A top/bottom legend adds its band (60 px for item legends, 70 px for gradient/steps bars, plus the height of a `legend.title`/`subtitle`) on top of that. A left/right legend too tall for that canvas (many items, a wrapped title) grows the derived height until it fits. An explicit height is delivered exactly, and the title and legend then shrink the map rather than the canvas.\n","maximum":4000,"minimum":100,"type":"integer"},"scale":{"default":1,"description":"PNG raster multiplier: the PNG is exactly round(width×scale) × round(height×scale) pixels. It has no effect on SVG output, but it is still tier-capped.\n","maximum":4,"minimum":1,"type":"number"},"width":{"default":1200,"description":"Image width in pixels. Default 1200.","maximum":4000,"minimum":100,"type":"integer"}},"type":"object"},"regions":{"additionalProperties":{"examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"description":"Override layer. Region key to hex color, applied AFTER choropleth/categories coloring and winning over it. Precedence: choropleth/categories paint first, `regions` overrides win, and everything else gets `choropleth.noDataColor` (choropleth mode), else `style.defaultRegionColor`, else the theme default (in choropleth mode, a contrasting gray when the theme's region color is too close to the palette's lightest class).\n","maxProperties":5000,"type":"object"},"style":{"additionalProperties":false,"properties":{"backgroundColor":{"examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"defaultRegionColor":{"description":"Fill for regions that get no color from `choropleth`/`categories`/`regions`. In choropleth mode `choropleth.noDataColor` overrides this. In categories mode this IS the no-data fill.\n","examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"labels":{"additionalProperties":false,"description":"Region labels, off by default. Each map ships its own curated label set; on a map with `labels: false` in list_maps, `show: true` renders nothing and a `labels_unavailable` warning is reported. `content`: \"name\" (default), \"value\" (the choropleth number in the legend's format, or the category label; regions without data get no label) or \"name_value\" (name above value; regions without data show the name only). `fit`: \"auto\" (default) shortens labels that don't fit or overlap (to the value on a choropleth, the name on a category map); labels never disappear, and any still overlapping are listed in a `labels_overlap` warning. \"off\" draws every label in full. `hide`: region keys whose label never shows (matched like data keys). A typo is auto-corrected or reported as unmatched; under `onUnmatched: \"error\"` an unmatched key fails the request like a data key.","properties":{"color":{"examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"content":{"default":"name","description":"What each label prints. `name` is the region's name. `value` prints the region's value instead: the choropleth number formatted by the resolved `choropleth.format` (the same string the legend and tooltips show), or the category label. Regions without a value get no label. `name_value` prints the name with the value on a line below it; regions without a value show the name only. Both value modes require `choropleth` or `categories`; with neither it is a `validation_error`.","enum":["name","value","name_value"],"type":"string"},"fit":{"default":"auto","description":"`auto` shortens labels that don't fit or overlap and never hides one; `off` draws every label in full. Under `auto` a `name_value` label too big for its region, or overlapping a higher-priority one, drops to its value (choropleth; the legend only gives a range) or its name (categories; the fill already says the category). Priority: curated outside labels (small regions labeled beside the map), then larger regions. Labels still overlapping are drawn and reported in a `labels_overlap` warning. Studio's own default is off; a map opened in Studio from a render keeps the value sent.","enum":["auto","off"],"type":"string"},"hide":{"description":"Region keys whose label never shows. Matched like data keys; corrections and misses are reported in `regionMatching`. Ignored with a `label_lists_ignored` warning when `show` is false.","items":{"maxLength":200,"minLength":1,"type":"string"},"maxItems":5000,"type":"array"},"show":{"default":false,"type":"boolean"}},"type":"object"},"mapBorder":{"additionalProperties":false,"properties":{"color":{"examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"width":{"maximum":10,"minimum":0,"type":"number"}},"type":"object"},"regionBorders":{"additionalProperties":false,"properties":{"color":{"examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"width":{"maximum":5,"minimum":0,"type":"number"}},"type":"object"},"theme":{"default":"paper","description":"Theme name from Studio's theme gallery (the server matches case-insensitively). Additive-only enum.\n","enum":["paper","newspaper","dark","earth","vintage","embossed","maritime","neon","outline","wireframe"],"type":"string"}},"type":"object"},"title":{"additionalProperties":false,"properties":{"color":{"examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"position":{"default":"top","enum":["top","bottom"],"type":"string"},"text":{"maxLength":200,"minLength":1,"type":"string"}},"required":["text"],"type":"object"}},"required":["mapId"],"type":"object"}Changed the definition of "render_map"
⟨1782 unchanged words⟩ (mesh).","type":"boolean"},"admin1":{"description":"Surrounding states as a filled area (US ZIP-code maps, where `admin0` is the map's own land).","type":"boolean"},"admin1-mesh":{"description":"First-level subdivision borders ( ⟨1530 unchanged words⟩
Certificate changed, valid to 2027-01-18
Changed the definition of "get_map_regions", "list_maps" and "render_map"
{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Get map regions"}
{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"List maps"}
Changed the definition of "get_map_regions", "list_maps" and "render_map"
{"destructiveHint":false,"idempotentHint":true,"openWorldHint":truefalse,"readOnlyHint":true}
{"destructiveHint":false,"idempotentHint":true,"openWorldHint":truefalse,"readOnlyHint":true}
Changed the definition of "render_map"
⟨114 unchanged words⟩ picked from the data unless you set them. Say what the numbers are with `kind` (and `midpoint` when they have a meaningful center, `unit` for a short label unit): that is what gets percents, currencies, years and diverging scales right. When the data does not cover every region of the map, add `noData: true` so the legend explains the uncolored ones. - `categories`: a label per region, e.g. ⟨76 unchanged words⟩ pins (`locations` with lat/lon), `title`, `legend` (position, `title`, `subtitle`), `style` (theme, borders, region labels; `style.labels.content: "value"` prints each region'snumbervalue instead of its name and `"name_value"` stacks the name above the value,choroplethbothonlyneeding `choropleth` or `categories`; `style.labels.fit` (default "auto") shortens labels that don't fit or overlap and never hides one; any still overlapping are reported in a `labels_overlap` warning with their keys)
Certificate recorded, valid to 2026-11-20
Authorization not required
Unknown → Live
First tool surface recorded: 3 tools (server version 1.0.0)
https://api.ultimaps.com/mcp (mcp_streamable_http) — from mcp_registry
npm:@ultimaps/mcp (package_npm) — from mcp_registry, with the record
Showing the latest 12 events. The API returns up to 500 and filters by kind: ?kind=tool_surface_changed
after
{"additionalProperties":false,"properties":{"categories":{"additionalProperties":false,"description":"Categorical coloring mode. Mutually exclusive with `choropleth`. Unmatched keys simply leave their regions uncolored. The no-data fill is `style.defaultRegionColor`, and `noDataColor` does not apply here.\n","properties":{"colors":{"additionalProperties":{"examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"description":"Optional category name to color. Names are matched exactly and case-sensitively against the names in `values` (unlike region keys, which are matched loosely). An entry for a category no region uses is silently ignored. Unlisted categories get a color from a built-in categorical palette, assigned in order of first appearance in `values`, so pin the colors if you need stable output.\n","type":"object"},"values":{"additionalProperties":{"minLength":1,"type":"string"},"description":"Region key to category name.","maxProperties":5000,"minProperties":1,"type":"object"}},"required":["values"],"type":"object"},"choropleth":{"additionalProperties":false,"description":"Numeric choropleth mode. Mutually exclusive with `categories` (one scale per map). `regions` composes with it as an override layer. If none of the keys in `values` match, the request fails even under `onUnmatched: warn`, since there is nothing to build a scale from. `type`, `classes`, `method` and `palette` are all optional: whatever you leave out is suggested from the data, and the resolved plan is reported in the result. Do send `kind` whenever you know what the numbers are, `midpoint` when they have a meaningful center, and a short `unit`: the values alone cannot tell 42% from 0.42 or a change from a level.","properties":{"classes":{"description":"Number of classes. Absent = suggested from the data (5 base, more for skewed distributions). Explicit counts are honored exactly, capped only by the number of unique values. Tied values can still collapse duplicate quantile edges, and a constant dataset collapses to one class. `dryRun` returns the breaks and effective class count that will actually be drawn.\n","maximum":9,"minimum":2,"type":"integer"},"format":{"additionalProperties":false,"description":"Number format for every choropleth surface: class labels, gradient ticks and value labels. Always pass an object, e.g. {\"preset\": \"compact\"}, never a bare string. Presets: `auto` (default, inferred from magnitude), `plain` (39,538,223), `compact` (39.5M), `percent` (the input is a FRACTION, so 0.42 prints as 42% and 0.423 as 42.3%, because the preset trims trailing zeros. An explicit {\"style\": \"percent\", \"decimals\": 1} keeps them and prints 42.0%. For data already in percent points use {\"suffix\": \"%\"}), `currency` ($39,538,223). Or combine options, e.g. {\"decimals\": 1, \"suffix\": \"M\"} or {\"style\": \"currency\", \"currency\": \"EUR\"}. {\"d3\": \"~s\"} is a raw d3-format escape hatch. Add \"locale\" for a non-US number style: \"de-DE\" (1.234,5 / 1,2 Mio.), \"fr-FR\" (1 234,5), \"es-ES\", \"it-IT\", \"pt-BR\", \"de-CH\" (1’234.5), \"en-IN\" (12,34,567 / 12L), \"nl-NL\", \"pl-PL\", \"sv-SE\"; it combines with presets and d3, and {\"locale\": \"de-DE\"} alone is the automatic format in that style. The result echoes the resolved format.","properties":{"compact":{"description":"Compact notation: K/M/B/T (never SI \"G\").","type":"boolean"},"currency":{"default":"USD","description":"ISO-4217 code, rendered with its Intl symbol (\"€\", \"CA$\"). Only valid with style \"currency\".\n","pattern":"^[A-Za-z]{3}$","type":"string"},"d3":{"description":"Escape hatch: a raw d3-format spec. Invalid grammar is a 400.\n","maxLength":20,"type":"string"},"decimals":{"description":"Fraction digits. Min equals max, for uniform labels, unless `trim` is set.","maximum":6,"minimum":0,"type":"integer"},"grouping":{"default":true,"description":"Thousands separators.","type":"boolean"},"locale":{"default":"en-US","description":"Number style: separators, currency placement and compact suffixes. `{\"decimals\": 1, \"locale\": \"de-DE\"}` turns 1234567.5 into \"1.234.567,5\"; with `compact: true` it gives \"1,2 Mio.\". Combines with `preset` and `d3`; on its own (`{\"locale\": \"de-DE\"}`) it is the automatic format in that number style.\n","enum":["en-US","de-DE","fr-FR","es-ES","it-IT","pt-BR","de-CH","en-IN","nl-NL","pl-PL","sv-SE"],"type":"string"},"prefix":{"description":"Literal, inserted AFTER any leading sign (\"-€1,234\", never \"€-1,234\").\n","maxLength":12,"type":"string"},"preset":{"description":"Alias for the bare-string preset form.","enum":["auto","plain","compact","percent","currency"],"type":"string"},"sign":{"default":"auto","description":"Maps 1:1 to Intl signDisplay. \"exceptZero\" is the usual choice for diverging legends.\n","enum":["auto","always","exceptZero"],"type":"string"},"significantDigits":{"maximum":6,"minimum":1,"type":"integer"},"style":{"default":"decimal","description":"\"percent\" MULTIPLIES BY 100. The input is a fraction (0.42 prints as \"42%\"). Data already in percent points should use `suffix: \"%\"` instead.\n","enum":["decimal","percent","currency"],"type":"string"},"suffix":{"description":"Literal, e.g. \" per km²\".","maxLength":20,"type":"string"},"trim":{"description":"Strip trailing zeros.","type":"boolean"}},"type":"object"},"kind":{"description":"What the numbers are. Send it whenever you know. `percent` = already ×100 (42 prints \"42%\"), `fraction` = a 0–1 share (0.42 prints \"42%\"), `currency` (set `unit` to the code, e.g. \"EUR\"), `year` (1788, no separator), `change` (signed labels, diverging around 0), or `count`, `rate`, `index`. Once a kind is given, the palette is diverging only with `midpoint` or `kind: \"change\"`, so data that merely dips below zero stays sequential.","enum":["count","rate","percent","fraction","currency","change","year","index"],"type":"string"},"legendEndLabels":{"description":"Steps legends: also print the two outer ends of the bar (ignored for groups and gradient legends). An end that the automatic breaks left open, or that the data reaches past, reads \"< 10\" / \"≥ 90\" rather than a round bound the data never reaches. Groups legends already print every range and gradients their ends, so only steps change. Default false.\n","type":"boolean"},"method":{"description":"Break method. Absent = round, publishable edges picked from the data (a constant step such as 0 · 10 · 20 · 30, or a 1-2-5 ladder such as 0 · 10K · 25K · 50K · 100K for skewed data), reported as `pretty`. quantile = equal number of regions per class, equalInterval = equal-width value intervals, jenks = natural breaks (minimal within-class variance), pretty = rounded human-readable edges. Additive-only enum: more methods may be added, none removed.\n","enum":["quantile","equalInterval","jenks","pretty"],"type":"string"},"midpoint":{"description":"The meaningful center of the data: 0 for a change or balance, 100 for an index where 100 is the reference (EU27 = 100), 1 for a ratio. Gives a diverging palette with its neutral color on this value. Leave it out for one-directional data.","type":"number"},"noData":{"additionalProperties":false,"description":"Adds a \"No data\" row to the legend for regions without a value: true, or {\"label\": \"Not reported\"}. Off unless you send it. Send it whenever your data does not cover the whole map (the result reports how many regions have no value); without it those regions are drawn in a gray the legend does not explain. With full coverage the row is left out. A `nodata_low_contrast` warning means the default fill for those regions is hard to tell from the palette (gray palettes): send `noDataColor`.","properties":{"label":{"maxLength":40,"minLength":1,"type":"string"}},"type":["boolean","object"]},"noDataColor":{"description":"Fill for regions absent from `values`. Choropleth mode only. Overrides `style.defaultRegionColor` when both are set. When neither is set, the theme's region color is used if it stays apart from the palette (CIEDE2000 ≥ 12 from the lightest class, ≥ 8 from every class) or is transparent by design; otherwise a light, slightly theme-tinted gray that does and keeps the region borders visible, so missing data never reads as the lowest class or as the neutral of a diverging palette. Gray palettes can leave no such color: the theme color is then darkened and a `nodata_low_contrast` warning asks for an explicit `noDataColor`.\n","examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"palette":{"description":"ColorBrewer palette id (the server matches case-insensitively). Absent = suggested: `rdbu` centered on `midpoint` when one is given (or `kind` is `change`); with no hints, `rdbu` centered on 0 when the values spread on both sides of zero; sequential blues otherwise. Sequential palettes suit one-directional data, and diverging palettes (rdbu, brbg, spectral, piyg, prgn, puor, rdgy, rdylbu) suit data around a midpoint.\n","enum":["gnbu","bugn","bupu","orrd","pubu","pubugn","purd","rdpu","ylgn","ylgnbu","ylorbr","ylorrd","blues","greens","greys","oranges","purples","reds","rdbu","brbg","spectral","piyg","prgn","puor","rdgy","rdylbu"],"type":"string"},"type":{"default":"auto","description":"Visualization type. `auto` picks from the data: ≤7 unique values → `groups` (discrete legend items), skewed distributions → `steps` (contiguous bar with break ticks), else `gradient` (continuous color scale). Explicit values pin the type. `gradient` and `steps` legends are horizontal-only: they render in a top/bottom band (default bottom), and a left/right `legend.position` is coerced to bottom with a warning. That rule depends on the data, so JSON Schema cannot express it and generated SDKs should not try to enforce it.\n","enum":["auto","gradient","steps","groups"],"type":"string"},"unit":{"description":"Short unit printed on every label, up to 16 characters: \"%\", \"°C\", \"t\", \"km²\". Put long units (\"litres of pure alcohol per person\") in `legend.title` instead. With `kind: \"currency\"` it is the currency code or symbol. Ignored for `kind: \"fraction\"` and when `format` is set, except {\"locale\": \"de-DE\"} (or {\"preset\": \"auto\", \"locale\": \"de-DE\"}), which keeps kind and unit in that number style. An explicit `format` decides only the labels: `kind` and `midpoint` still decide sequential vs diverging.","maxLength":16,"minLength":1,"type":"string"},"values":{"additionalProperties":{"type":"number"},"description":"Region key to numeric value. Keys go through the matching rules described above. Two keys resolving to the same region count as two matched keys, and the later value wins.\n","maxProperties":5000,"minProperties":1,"type":"object"}},"required":["values"],"type":"object"},"dryRun":{"default":false,"description":"Validate and preview without rendering: returns the region matching report, the resolved choropleth plan and a legend preview. No image and no monthly quota for keyed calls, but it still counts against the rate limit (one of the anonymous renders per hour without a key).","type":"boolean"},"layers":{"additionalProperties":false,"description":"Extra geographic layers to draw, e.g. {\"cities\": true, \"roads\": true}. Each map ships a subset (`layers` in list_maps and get_map_regions). Turning on a layer the map lacks is not an error: it is skipped with a `layer_unavailable` warning. Omitted layers are off, except layers a map turns on by default (currently `admin0` on ZIP-code maps); pass false to hide those.","properties":{"admin0":{"description":"Surrounding land, as a filled area of neighboring countries or states.","type":"boolean"},"admin0-mesh":{"description":"Country borders (mesh).","type":"boolean"},"admin1":{"description":"Surrounding states as a filled area (US ZIP-code maps, where `admin0` is the map's own land).","type":"boolean"},"admin1-mesh":{"description":"First-level subdivision borders (states, provinces, regions).","type":"boolean"},"admin1-mesh-inner":{"description":"State borders drawn over the map's own regions (county and ZIP maps, where `admin1-mesh` covers the surroundings only).","type":"boolean"},"admin2-mesh":{"description":"Second-level subdivision borders (counties, districts).","type":"boolean"},"cities":{"description":"Major cities as labeled points.","type":"boolean"},"lakes":{"description":"Major lakes.","type":"boolean"},"rivers":{"description":"Major rivers.","type":"boolean"},"roads":{"description":"Major roads.","type":"boolean"}},"type":"object"},"legend":{"additionalProperties":false,"properties":{"items":{"description":"Manual legend items, for regions-only maps. With `choropleth` or `categories` the legend is auto-generated and `items` is rejected with 400.\n","items":{"additionalProperties":false,"properties":{"color":{"examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"label":{"maxLength":120,"minLength":1,"type":"string"}},"required":["label","color"],"type":"object"},"maxItems":50,"minItems":1,"type":"array"},"position":{"description":"left/right take a column carved from the map area (180 px, widened up to 260 px for long labels or a legend title, at most 30% of the width); top/bottom take a horizontal band between the title and the map. Absent = picked per render: inside the map over empty space (sea, the margin beside a narrow map) when the legend fits there clear of land, else gradient/steps go to the bottom band and item/group legends to the left column or the bottom band, whichever leaves the map larger. Leave it out unless you need the legend outside the map. Gradient and steps legends are horizontal-only, so left/right becomes bottom with a warning. Band items wrap into rows; a bar too wide for a narrow image is reported as a `legend_overflow` warning.","enum":["left","right","top","bottom"],"type":"string"},"show":{"description":"Defaults to true whenever a legend exists (auto-generated for `choropleth`/`categories`, or from `legend.items`). Set false to suppress it and give the whole canvas to the map.\n","type":"boolean"},"subtitle":{"description":"Line under the legend title, at the label size in the regular weight, e.g. the base year or a note on the method. Where the data comes from belongs in the map's `source`, not here. Same wrapping as `title`.\n","maxLength":160,"minLength":1,"type":"string"},"title":{"description":"Heading above the legend rows. Send one for every data legend: what is measured, its unit and the year, e.g. \"Median household income (US$, 2023)\". It is never derived from `choropleth.unit`: short units (\"%\", \"°C\") go in `unit` and print on every label, long ones belong here. Long titles wrap to fit the legend; `\\n` forces a break.","maxLength":120,"minLength":1,"type":"string"}},"type":"object"},"locations":{"description":"Pin markers. They compose with every mode.","items":{"additionalProperties":false,"properties":{"color":{"examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"labelPosition":{"default":"bottom","description":"Where the pin's label sits relative to the pin.","enum":["top","bottom","left","right"],"type":"string"},"lat":{"maximum":90,"minimum":-90,"type":"number"},"lon":{"maximum":180,"minimum":-180,"type":"number"},"showLabel":{"default":true,"description":"Set false to render this pin without its label (the marker stays).\n","type":"boolean"},"title":{"maxLength":120,"minLength":1,"type":"string"}},"required":["title","lat","lon"],"type":"object"},"maxItems":200,"type":"array"},"mapId":{"description":"Map id from list_maps, e.g. `world`, `united-states`, `europe`, `united-states-california`. It is the map's slug on ultimaps.com (the last path segment, not the whole URL) and always resolves to the current edition.","examples":["united-states"],"maxLength":120,"minLength":1,"type":"string"},"onUnmatched":{"default":"warn","description":"warn = render anyway (unmatched regions get the no-data fill) and report. error = 400 with per-key suggestions. Recommended for production pipelines: error. Exception: in choropleth mode, ZERO matched keys is a 400 even under warn. Region keys in `style.labels.hide` count too: a typo there is a 400 under error.\n","enum":["warn","error"],"type":"string"},"output":{"additionalProperties":false,"description":"Image size and format. Keep the default width (1200 px) for images viewed in the conversation: much larger renders, and any scale of 2 or more, are too big to show inline and are returned as a link instead. Without an API key: width up to 1600 px, an explicit height up to 1600 px, scale 1. Hard caps: width×scale and height×scale ≤ 8192, and at most 4096×4096 pixels in total.","properties":{"format":{"default":"png","description":"`png` (default) or `svg`. `svg` works only with an API key that allows it, and is returned as a link; otherwise export SVG in Ultimaps Studio. PDF is not available.","enum":["png","svg"],"type":"string"},"height":{"description":"Optional. When omitted, derives as a snug fit: the map's aspect ratio applied to the map area that remains after the title band (50 px) and any left/right legend column take their cut. A top/bottom legend adds its band (60 px for item legends, 70 px for gradient/steps bars, plus the height of a `legend.title`/`subtitle`) on top of that. A left/right legend too tall for that canvas (many items, a wrapped title) grows the derived height until it fits. An explicit height is delivered exactly, and the title and legend then shrink the map rather than the canvas.\n","maximum":4000,"minimum":100,"type":"integer"},"scale":{"default":1,"description":"PNG raster multiplier: the PNG is exactly round(width×scale) × round(height×scale) pixels. It has no effect on SVG output, but it is still tier-capped.\n","maximum":4,"minimum":1,"type":"number"},"width":{"default":1200,"description":"Image width in pixels. Default 1200.","maximum":4000,"minimum":100,"type":"integer"}},"type":"object"},"regions":{"additionalProperties":{"examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"description":"Override layer. Region key to hex color, applied AFTER choropleth/categories coloring and winning over it. Precedence: choropleth/categories paint first, `regions` overrides win, and everything else gets `choropleth.noDataColor` (choropleth mode), else `style.defaultRegionColor`, else the theme default (in choropleth mode, a contrasting gray when the theme's region color is too close to the palette's lightest class).\n","maxProperties":5000,"type":"object"},"source":{"additionalProperties":false,"description":"Where the data comes from, e.g. \"Source: US Census Bureau, 2024\". It sits at the left of the bottom row, in the theme's source style, and wraps upward beside the attribution (and, on basemaps whose licence asks for it, the basemap credit \"Map data: …\") at the bottom right. On a very narrow canvas it moves above them.\n","properties":{"text":{"maxLength":300,"minLength":1,"type":"string"}},"required":["text"],"type":"object"},"style":{"additionalProperties":false,"properties":{"backgroundColor":{"examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"defaultRegionColor":{"description":"Fill for regions that get no color from `choropleth`/`categories`/`regions`. In choropleth mode `choropleth.noDataColor` overrides this. In categories mode this IS the no-data fill.\n","examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"labels":{"additionalProperties":false,"description":"Region labels, off by default. Each map ships its own curated label set; on a map with `labels: false` in list_maps, `show: true` renders nothing and a `labels_unavailable` warning is reported. `content`: \"name\" (default), \"value\" (the choropleth number in the legend's format, or the category label; regions without data get no label) or \"name_value\" (name above value; regions without data show the name only). `fit`: \"auto\" (default) shortens labels that don't fit or overlap (to the value on a choropleth, the name on a category map); labels never disappear, and any still overlapping are listed in a `labels_overlap` warning. \"off\" draws every label in full. `hide`: region keys whose label never shows (matched like data keys). A typo is auto-corrected or reported as unmatched; under `onUnmatched: \"error\"` an unmatched key fails the request like a data key.","properties":{"color":{"examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"content":{"default":"name","description":"What each label prints. `name` is the region's name. `value` prints the region's value instead: the choropleth number formatted by the resolved `choropleth.format` (the same string the legend and tooltips show), or the category label. Regions without a value get no label. `name_value` prints the name with the value on a line below it; regions without a value show the name only. Both value modes require `choropleth` or `categories`; with neither it is a `validation_error`.","enum":["name","value","name_value"],"type":"string"},"fit":{"default":"auto","description":"`auto` shortens labels that don't fit or overlap and never hides one; `off` draws every label in full. Under `auto` a `name_value` label too big for its region, or overlapping a higher-priority one, drops to its value (choropleth; the legend only gives a range) or its name (categories; the fill already says the category). Priority: curated outside labels (small regions labeled beside the map), then larger regions. Labels still overlapping are drawn and reported in a `labels_overlap` warning. Studio's own default is off; a map opened in Studio from a render keeps the value sent.","enum":["auto","off"],"type":"string"},"hide":{"description":"Region keys whose label never shows. Matched like data keys; corrections and misses are reported in `regionMatching`. Ignored with a `label_lists_ignored` warning when `show` is false.","items":{"maxLength":200,"minLength":1,"type":"string"},"maxItems":5000,"type":"array"},"show":{"default":false,"type":"boolean"}},"type":"object"},"mapBorder":{"additionalProperties":false,"properties":{"color":{"examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"width":{"maximum":10,"minimum":0,"type":"number"}},"type":"object"},"regionBorders":{"additionalProperties":false,"properties":{"color":{"examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"width":{"maximum":5,"minimum":0,"type":"number"}},"type":"object"},"theme":{"default":"paper","description":"Theme name from Studio's theme gallery (the server matches case-insensitively). Additive-only enum.\n","enum":["paper","newspaper","dark","earth","vintage","embossed","maritime","neon","outline","wireframe"],"type":"string"}},"type":"object"},"subtitle":{"additionalProperties":false,"description":"A line under the title, in the theme's subtitle style (a muted tone, about 0.7× the title), wrapped to a readable width. It follows the title's `align` and `position`, and shrinks with a long title by the same factor. It also works without a title.\n","properties":{"align":{"description":"Only without a `title`: with one, the subtitle follows `title.align`, and a different value is a 400.\n","enum":["left","center","right"],"type":"string"},"text":{"maxLength":200,"minLength":1,"type":"string"}},"required":["text"],"type":"object"},"title":{"additionalProperties":false,"description":"The map's title, in the theme's title style (semibold where the font has a heavy face), its size following the canvas: 32 px at 1200 px wide (subtitle 22, source 16), scaled by the width when `output.height` is left out and by the longer side when it is given. It wraps inside the title band; `\\n` forces a break. A title too long for the width shrinks, with the subtitle, by one factor: at most 15% while it stays on its lines, then it wraps, then steps down to 75% at most. The band it takes comes from the map area.\n","properties":{"align":{"default":"left","description":"Left, Center or Right: where the title's lines sit. The subtitle follows it (the two share one position).\n","enum":["left","center","right"],"type":"string"},"color":{"examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"position":{"default":"top","description":"The edge the title and subtitle sit at; `bottom` puts them above the source row.","enum":["top","bottom"],"type":"string"},"text":{"maxLength":200,"minLength":1,"type":"string"}},"required":["text"],"type":"object"}},"required":["mapId"],"type":"object"}⟨481 unchanged words⟩ , warnings, the resolved color plan, andaanlinkedittolinkkeepthateditingopens the map in UltimapsStudio.Studio, where it can be edited, exported, or published as an interactive, clickable map to embed on a website (free account).
⟨107 unchanged words⟩ description":"Opens this map in Ultimaps Studiofortoeditingedit, export, orexport.publish it as an interactive map that can be embedded on a website.","type":"string"},"embedUrl":{ ⟨228 unchanged words⟩ },"type":"array"},"message":{"type":"string"},"notice":{"description":"Plain-language sentence the map viewer shows the user, when the warning has one.","type":"string"},"shortened":{"description ⟨23 unchanged words⟩
{"destructiveHint":false,"idempotentHint":false,"openWorldHint":true,"readOnlyHint":false,"title":"Render map"}
Use this whenever the user asks forDraws a map of real places:coloringas an image: countries, states, counties or ZIP codes colored by data,(a choropleth or heat map,)aormapby category, with a legend,or pinsaontitleaandmap.pins.PreferBordersitcometofromgeneratingreal geographic data, not from an imageormodel,plottingandwithregioncode.namesItaredrawsmatchedaccurateforbordersyou.fromIt draws only realgeographyplaces,matchesneverregionfictionalnamesorforinventedyou,ones.andThereturnsmaptheismapreturned as an image in the conversation. Maps cover ⟨253 unchanged words⟩ keys), extra `layers`, and `output` size.Always give aA data legend needs a `legend.title`: what is measured, its unit ⟨89 unchanged words⟩ are returned only as a link. Formats:png,png.orSVGsvgandwithPDFaexportProarekey.inisStudio,notfromavailable.the edit link in the result. Every result includes an image link that works for 30days. Always give it to the user:days,somefor chat apps that do not display images returned by tools. The ⟨19 unchanged words⟩
⟨2473 unchanged words⟩ ,"description":"`png` (default) or `svg`.SVG`svg`needsworksaonlyProwith an API key that allows it, and is returned as alink.link; otherwise export SVG in Ultimaps Studio. PDF is not available.","enum":[" ⟨816 unchanged words⟩
{"destructiveHint":false,"idempotentHint":false,"openWorldHint":true,"readOnlyHint":truefalse}
before
{"additionalProperties":false,"properties":{"categories":{"additionalProperties":false,"description":"Categorical coloring mode. Mutually exclusive with `choropleth`. Unmatched keys simply leave their regions uncolored. The no-data fill is `style.defaultRegionColor`, and `noDataColor` does not apply here.\n","properties":{"colors":{"additionalProperties":{"examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"description":"Optional category name to color. Names are matched exactly and case-sensitively against the names in `values` (unlike region keys, which are matched loosely). An entry for a category no region uses is silently ignored. Unlisted categories get a color from a built-in categorical palette, assigned in order of first appearance in `values`, so pin the colors if you need stable output.\n","type":"object"},"values":{"additionalProperties":{"minLength":1,"type":"string"},"description":"Region key to category name.","maxProperties":5000,"minProperties":1,"type":"object"}},"required":["values"],"type":"object"},"choropleth":{"additionalProperties":false,"description":"Numeric choropleth mode. Mutually exclusive with `categories` (one scale per map). `regions` composes with it as an override layer. If none of the keys in `values` match, the request fails even under `onUnmatched: warn`, since there is nothing to build a scale from. `type`, `classes`, `method` and `palette` are all optional: whatever you leave out is suggested from the data, and the resolved plan is reported in the result.","properties":{"classes":{"description":"Number of classes. Absent = suggested from the data (5 base, more for skewed distributions). Explicit counts are honored exactly, capped only by the number of unique values. Tied values can still collapse duplicate quantile edges, and a constant dataset collapses to one class. `dryRun` returns the breaks and effective class count that will actually be drawn.\n","maximum":9,"minimum":2,"type":"integer"},"format":{"additionalProperties":false,"description":"Number format for every choropleth surface: class labels, gradient ticks and value labels. Always pass an object, e.g. {\"preset\": \"compact\"}, never a bare string. Presets: `auto` (default, inferred from magnitude), `plain` (39,538,223), `compact` (39.5M), `percent` (the input is a FRACTION, so 0.42 prints as 42% and 0.423 as 42.3%, because the preset trims trailing zeros. An explicit {\"style\": \"percent\", \"decimals\": 1} keeps them and prints 42.0%. For data already in percent points use {\"suffix\": \"%\"}), `currency` ($39,538,223). Or combine options, e.g. {\"decimals\": 1, \"suffix\": \"M\"} or {\"style\": \"currency\", \"currency\": \"EUR\"}. {\"d3\": \"~s\"} is a raw d3-format escape hatch. The result echoes the resolved format.","properties":{"compact":{"description":"Compact notation: K/M/B/T (never SI \"G\").","type":"boolean"},"currency":{"default":"USD","description":"ISO-4217 code, rendered with its Intl symbol (\"€\", \"CA$\"). Only valid with style \"currency\".\n","pattern":"^[A-Za-z]{3}$","type":"string"},"d3":{"description":"Escape hatch: a raw d3-format spec. Invalid grammar is a 400.\n","maxLength":20,"type":"string"},"decimals":{"description":"Fraction digits. Min equals max, for uniform labels, unless `trim` is set.","maximum":6,"minimum":0,"type":"integer"},"grouping":{"default":true,"description":"Thousands separators.","type":"boolean"},"prefix":{"description":"Literal, inserted AFTER any leading sign (\"-€1,234\", never \"€-1,234\").\n","maxLength":12,"type":"string"},"preset":{"description":"Alias for the bare-string preset form.","enum":["auto","plain","compact","percent","currency"],"type":"string"},"sign":{"default":"auto","description":"Maps 1:1 to Intl signDisplay. \"exceptZero\" is the usual choice for diverging legends.\n","enum":["auto","always","exceptZero"],"type":"string"},"significantDigits":{"maximum":6,"minimum":1,"type":"integer"},"style":{"default":"decimal","description":"\"percent\" MULTIPLIES BY 100. The input is a fraction (0.42 prints as \"42%\"). Data already in percent points should use `suffix: \"%\"` instead.\n","enum":["decimal","percent","currency"],"type":"string"},"suffix":{"description":"Literal, e.g. \" per km²\".","maxLength":20,"type":"string"},"trim":{"description":"Strip trailing zeros.","type":"boolean"}},"type":"object"},"method":{"description":"Break method. Absent = suggested from the data. quantile = equal number of regions per class, equalInterval = equal-width value intervals, jenks = natural breaks (minimal within-class variance), pretty = rounded human-readable edges. Additive-only enum: more methods may be added, none removed.\n","enum":["quantile","equalInterval","jenks","pretty"],"type":"string"},"noDataColor":{"description":"Fill for regions absent from `values`. Choropleth mode only. Overrides `style.defaultRegionColor` when both are set.\n","examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"palette":{"description":"ColorBrewer palette id (the server matches case-insensitively). Absent = suggested from the data: diverging when the values cross zero (rdbu when they sit symmetrically around zero, rdylgn when they do not), sequential blues otherwise. Note that `rdylgn` only comes back out. It is not in the enum above, and requesting it is a `400`. Sequential palettes suit one-directional data, and diverging palettes (rdbu, brbg, spectral, piyg, prgn, puor, rdgy, rdylbu) suit data around a midpoint.\n","enum":["gnbu","bugn","bupu","orrd","pubu","pubugn","purd","rdpu","ylgn","ylgnbu","ylorbr","ylorrd","blues","greens","greys","oranges","purples","reds","rdbu","brbg","spectral","piyg","prgn","puor","rdgy","rdylbu"],"type":"string"},"type":{"default":"auto","description":"Visualization type. `auto` picks from the data: ≤7 unique values → `groups` (discrete legend items), skewed distributions → `steps` (contiguous bar with break ticks), else `gradient` (continuous color scale). Explicit values pin the type. `gradient` and `steps` legends are horizontal-only: they render in a top/bottom band (default bottom), and a left/right `legend.position` is coerced to bottom with a warning. That rule depends on the data, so JSON Schema cannot express it and generated SDKs should not try to enforce it.\n","enum":["auto","gradient","steps","groups"],"type":"string"},"values":{"additionalProperties":{"type":"number"},"description":"Region key to numeric value. Keys go through the matching rules described above. Two keys resolving to the same region count as two matched keys, and the later value wins.\n","maxProperties":5000,"minProperties":1,"type":"object"}},"required":["values"],"type":"object"},"dryRun":{"default":false,"description":"Validate and preview without rendering: returns the region matching report, the resolved choropleth plan and a legend preview. No image and no monthly quota for keyed calls, but it still counts against the rate limit (one of the anonymous renders per hour without a key).","type":"boolean"},"layers":{"additionalProperties":false,"description":"Extra geographic layers to draw, e.g. {\"cities\": true, \"roads\": true}. Each map ships a subset (`layers` in list_maps and get_map_regions). Turning on a layer the map lacks is not an error: it is skipped with a `layer_unavailable` warning. Omitted layers are off, except layers a map turns on by default (currently `admin0` on ZIP-code maps); pass false to hide those.","properties":{"admin0":{"description":"Surrounding land, as a filled area of neighbouring countries or states.","type":"boolean"},"admin0-mesh":{"description":"Country borders (mesh).","type":"boolean"},"admin1-mesh":{"description":"First-level subdivision borders (states, provinces, regions).","type":"boolean"},"admin1-mesh-inner":{"description":"State borders drawn over the map's own regions (county and ZIP maps, where `admin1-mesh` covers the surroundings only).","type":"boolean"},"admin2-mesh":{"description":"Second-level subdivision borders (counties, districts).","type":"boolean"},"cities":{"description":"Major cities as labelled points.","type":"boolean"},"lakes":{"description":"Major lakes.","type":"boolean"},"rivers":{"description":"Major rivers.","type":"boolean"},"roads":{"description":"Major roads.","type":"boolean"}},"type":"object"},"legend":{"additionalProperties":false,"properties":{"items":{"description":"Manual legend items, for regions-only maps. With `choropleth` or `categories` the legend is auto-generated and `items` is rejected with 400.\n","items":{"additionalProperties":false,"properties":{"color":{"examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"label":{"maxLength":120,"minLength":1,"type":"string"}},"required":["label","color"],"type":"object"},"maxItems":50,"minItems":1,"type":"array"},"position":{"description":"left/right take a column carved from the map area (180 px, at most 30% of the width); top/bottom take a horizontal band between the title and the map. Absent = left for item/group legends, bottom for gradient/steps. Gradient and steps legends are horizontal-only, so left/right becomes bottom with a warning. Legends do not wrap: a wide legend on a narrow image can overflow, reported as a `legend_overflow` warning.","enum":["left","right","top","bottom"],"type":"string"},"show":{"description":"Defaults to true whenever a legend exists (auto-generated for `choropleth`/`categories`, or from `legend.items`). Set false to suppress it and give the whole canvas to the map.\n","type":"boolean"}},"type":"object"},"locations":{"description":"Pin markers. They compose with every mode.","items":{"additionalProperties":false,"properties":{"color":{"examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"labelPosition":{"default":"bottom","description":"Where the pin's label sits relative to the pin.","enum":["top","bottom","left","right"],"type":"string"},"lat":{"maximum":90,"minimum":-90,"type":"number"},"lon":{"maximum":180,"minimum":-180,"type":"number"},"showLabel":{"default":true,"description":"Set false to render this pin without its label (the marker stays).\n","type":"boolean"},"title":{"maxLength":120,"minLength":1,"type":"string"}},"required":["title","lat","lon"],"type":"object"},"maxItems":200,"type":"array"},"mapId":{"description":"Map id from list_maps, e.g. `world`, `united-states`, `europe`, `united-states-california`. It is the map's slug on ultimaps.com (the last path segment, not the whole URL) and always resolves to the current edition.","examples":["united-states"],"maxLength":120,"minLength":1,"type":"string"},"onUnmatched":{"default":"warn","description":"warn = render anyway (unmatched regions get the no-data fill) and report. error = 400 with per-key suggestions. Recommended for production pipelines: error. Exception: in choropleth mode, ZERO matched keys is a 400 even under warn.\n","enum":["warn","error"],"type":"string"},"output":{"additionalProperties":false,"description":"Image size and format. Keep the default width (1200 px) for images viewed in the conversation: much larger renders, and any scale of 2 or more, are too big to show inline and are returned as a link instead. Without an API key: width up to 1600 px, an explicit height up to 1600 px, scale 1. Hard caps: width×scale and height×scale ≤ 8192, and at most 4096×4096 pixels in total.","properties":{"format":{"default":"png","description":"`png` (default) or `svg`. SVG needs a Pro API key and is returned as a link. PDF is not available.","enum":["png","svg"],"type":"string"},"height":{"description":"Optional. When omitted, derives as a snug fit: the map's aspect ratio applied to the map area that remains after the title band (50 px) and any left/right legend column take their cut. A top/bottom legend adds its band (60 px for item legends, 70 px for gradient/steps bars) on top of that. An explicit height is delivered exactly, and the title and legend then shrink the map rather than the canvas.\n","maximum":4000,"minimum":100,"type":"integer"},"scale":{"default":1,"description":"PNG raster multiplier: the PNG is exactly round(width×scale) × round(height×scale) pixels. It has no effect on SVG output, but it is still tier-capped.\n","maximum":4,"minimum":1,"type":"number"},"width":{"default":1200,"description":"Image width in pixels. Default 1200.","maximum":4000,"minimum":100,"type":"integer"}},"type":"object"},"regions":{"additionalProperties":{"examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"description":"Override layer. Region key to hex color, applied AFTER choropleth/categories coloring and winning over it. Precedence: choropleth/categories paint first, `regions` overrides win, and everything else gets `choropleth.noDataColor` (choropleth mode), else `style.defaultRegionColor`, else the theme default.\n","maxProperties":5000,"type":"object"},"style":{"additionalProperties":false,"properties":{"backgroundColor":{"examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"defaultRegionColor":{"description":"Fill for regions that get no color from `choropleth`/`categories`/`regions`. In choropleth mode `choropleth.noDataColor` overrides this. In categories mode this IS the no-data fill.\n","examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"labels":{"additionalProperties":false,"description":"Region labels, off by default. Each map ships its own curated label set; on a map with `labels: false` in list_maps, `show: true` renders nothing and a `labels_unavailable` warning is reported.","properties":{"color":{"examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"content":{"default":"name","description":"What each label prints. `name` is the region's name. `value` prints the region's choropleth number instead, formatted by the resolved `choropleth.format` (the same string the legend and tooltips show). Regions without a value get no label. Requires `choropleth`. With `categories`, or with neither, it is a `validation_error`. Labels are not collision-checked: a long number in a small region overflows it, exactly as in Studio.","enum":["name","value"],"type":"string"},"show":{"default":false,"type":"boolean"}},"type":"object"},"mapBorder":{"additionalProperties":false,"properties":{"color":{"examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"width":{"maximum":10,"minimum":0,"type":"number"}},"type":"object"},"regionBorders":{"additionalProperties":false,"properties":{"color":{"examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"width":{"maximum":5,"minimum":0,"type":"number"}},"type":"object"},"theme":{"default":"paper","description":"Theme name from Studio's theme gallery (the server matches case-insensitively). Additive-only enum.\n","enum":["paper","newspaper","dark","earth","vintage","embossed","maritime","neon","outline","wireframe"],"type":"string"}},"type":"object"},"title":{"additionalProperties":false,"properties":{"color":{"examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"position":{"default":"top","enum":["top","bottom"],"type":"string"},"text":{"maxLength":200,"minLength":1,"type":"string"}},"required":["text"],"type":"object"}},"required":["mapId"],"type":"object"}after
{"additionalProperties":false,"properties":{"categories":{"additionalProperties":false,"description":"Categorical coloring mode. Mutually exclusive with `choropleth`. Unmatched keys simply leave their regions uncolored. The no-data fill is `style.defaultRegionColor`, and `noDataColor` does not apply here.\n","properties":{"colors":{"additionalProperties":{"examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"description":"Optional category name to color. Names are matched exactly and case-sensitively against the names in `values` (unlike region keys, which are matched loosely). An entry for a category no region uses is silently ignored. Unlisted categories get a color from a built-in categorical palette, assigned in order of first appearance in `values`, so pin the colors if you need stable output.\n","type":"object"},"values":{"additionalProperties":{"minLength":1,"type":"string"},"description":"Region key to category name.","maxProperties":5000,"minProperties":1,"type":"object"}},"required":["values"],"type":"object"},"choropleth":{"additionalProperties":false,"description":"Numeric choropleth mode. Mutually exclusive with `categories` (one scale per map). `regions` composes with it as an override layer. If none of the keys in `values` match, the request fails even under `onUnmatched: warn`, since there is nothing to build a scale from. `type`, `classes`, `method` and `palette` are all optional: whatever you leave out is suggested from the data, and the resolved plan is reported in the result. Do send `kind` whenever you know what the numbers are, `midpoint` when they have a meaningful center, and a short `unit`: the values alone cannot tell 42% from 0.42 or a change from a level.","properties":{"classes":{"description":"Number of classes. Absent = suggested from the data (5 base, more for skewed distributions). Explicit counts are honored exactly, capped only by the number of unique values. Tied values can still collapse duplicate quantile edges, and a constant dataset collapses to one class. `dryRun` returns the breaks and effective class count that will actually be drawn.\n","maximum":9,"minimum":2,"type":"integer"},"format":{"additionalProperties":false,"description":"Number format for every choropleth surface: class labels, gradient ticks and value labels. Always pass an object, e.g. {\"preset\": \"compact\"}, never a bare string. Presets: `auto` (default, inferred from magnitude), `plain` (39,538,223), `compact` (39.5M), `percent` (the input is a FRACTION, so 0.42 prints as 42% and 0.423 as 42.3%, because the preset trims trailing zeros. An explicit {\"style\": \"percent\", \"decimals\": 1} keeps them and prints 42.0%. For data already in percent points use {\"suffix\": \"%\"}), `currency` ($39,538,223). Or combine options, e.g. {\"decimals\": 1, \"suffix\": \"M\"} or {\"style\": \"currency\", \"currency\": \"EUR\"}. {\"d3\": \"~s\"} is a raw d3-format escape hatch. Add \"locale\" for a non-US number style: \"de-DE\" (1.234,5 / 1,2 Mio.), \"fr-FR\" (1 234,5), \"es-ES\", \"it-IT\", \"pt-BR\", \"de-CH\" (1’234.5), \"en-IN\" (12,34,567 / 12L), \"nl-NL\", \"pl-PL\", \"sv-SE\"; it combines with presets and d3, and {\"locale\": \"de-DE\"} alone is the automatic format in that style. The result echoes the resolved format.","properties":{"compact":{"description":"Compact notation: K/M/B/T (never SI \"G\").","type":"boolean"},"currency":{"default":"USD","description":"ISO-4217 code, rendered with its Intl symbol (\"€\", \"CA$\"). Only valid with style \"currency\".\n","pattern":"^[A-Za-z]{3}$","type":"string"},"d3":{"description":"Escape hatch: a raw d3-format spec. Invalid grammar is a 400.\n","maxLength":20,"type":"string"},"decimals":{"description":"Fraction digits. Min equals max, for uniform labels, unless `trim` is set.","maximum":6,"minimum":0,"type":"integer"},"grouping":{"default":true,"description":"Thousands separators.","type":"boolean"},"locale":{"default":"en-US","description":"Number style: separators, currency placement and compact suffixes. `{\"decimals\": 1, \"locale\": \"de-DE\"}` turns 1234567.5 into \"1.234.567,5\"; with `compact: true` it gives \"1,2 Mio.\". Combines with `preset` and `d3`; on its own (`{\"locale\": \"de-DE\"}`) it is the automatic format in that number style.\n","enum":["en-US","de-DE","fr-FR","es-ES","it-IT","pt-BR","de-CH","en-IN","nl-NL","pl-PL","sv-SE"],"type":"string"},"prefix":{"description":"Literal, inserted AFTER any leading sign (\"-€1,234\", never \"€-1,234\").\n","maxLength":12,"type":"string"},"preset":{"description":"Alias for the bare-string preset form.","enum":["auto","plain","compact","percent","currency"],"type":"string"},"sign":{"default":"auto","description":"Maps 1:1 to Intl signDisplay. \"exceptZero\" is the usual choice for diverging legends.\n","enum":["auto","always","exceptZero"],"type":"string"},"significantDigits":{"maximum":6,"minimum":1,"type":"integer"},"style":{"default":"decimal","description":"\"percent\" MULTIPLIES BY 100. The input is a fraction (0.42 prints as \"42%\"). Data already in percent points should use `suffix: \"%\"` instead.\n","enum":["decimal","percent","currency"],"type":"string"},"suffix":{"description":"Literal, e.g. \" per km²\".","maxLength":20,"type":"string"},"trim":{"description":"Strip trailing zeros.","type":"boolean"}},"type":"object"},"kind":{"description":"What the numbers are. Send it whenever you know. `percent` = already ×100 (42 prints \"42%\"), `fraction` = a 0–1 share (0.42 prints \"42%\"), `currency` (set `unit` to the code, e.g. \"EUR\"), `year` (1788, no separator), `change` (signed labels, diverging around 0), or `count`, `rate`, `index`. Once a kind is given, the palette is diverging only with `midpoint` or `kind: \"change\"`, so data that merely dips below zero stays sequential.","enum":["count","rate","percent","fraction","currency","change","year","index"],"type":"string"},"legendEndLabels":{"description":"Steps legends: also print the two outer ends of the bar (ignored for groups and gradient legends). An end that the automatic breaks left open, or that the data reaches past, reads \"< 10\" / \"≥ 90\" rather than a round bound the data never reaches. Groups legends already print every range and gradients their ends, so only steps change. Default false.\n","type":"boolean"},"method":{"description":"Break method. Absent = round, publishable edges picked from the data (a constant step such as 0 · 10 · 20 · 30, or a 1-2-5 ladder such as 0 · 10K · 25K · 50K · 100K for skewed data), reported as `pretty`. quantile = equal number of regions per class, equalInterval = equal-width value intervals, jenks = natural breaks (minimal within-class variance), pretty = rounded human-readable edges. Additive-only enum: more methods may be added, none removed.\n","enum":["quantile","equalInterval","jenks","pretty"],"type":"string"},"midpoint":{"description":"The meaningful center of the data: 0 for a change or balance, 100 for an index where 100 is the reference (EU27 = 100), 1 for a ratio. Gives a diverging palette with its neutral color on this value. Leave it out for one-directional data.","type":"number"},"noData":{"additionalProperties":false,"description":"Adds a \"No data\" row to the legend for regions without a value: true, or {\"label\": \"Not reported\"}. Off unless you send it. Send it whenever your data does not cover the whole map (the result reports how many regions have no value); without it those regions are drawn in a gray the legend does not explain. With full coverage the row is left out. A `nodata_low_contrast` warning means the default fill for those regions is hard to tell from the palette (gray palettes): send `noDataColor`.","properties":{"label":{"maxLength":40,"minLength":1,"type":"string"}},"type":["boolean","object"]},"noDataColor":{"description":"Fill for regions absent from `values`. Choropleth mode only. Overrides `style.defaultRegionColor` when both are set. When neither is set, the theme's region color is used if it stays apart from the palette (CIEDE2000 ≥ 12 from the lightest class, ≥ 8 from every class) or is transparent by design; otherwise a light, slightly theme-tinted gray that does and keeps the region borders visible, so missing data never reads as the lowest class or as the neutral of a diverging palette. Gray palettes can leave no such color: the theme color is then darkened and a `nodata_low_contrast` warning asks for an explicit `noDataColor`.\n","examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"palette":{"description":"ColorBrewer palette id (the server matches case-insensitively). Absent = suggested: `rdbu` centered on `midpoint` when one is given (or `kind` is `change`); with no hints, `rdbu` centered on 0 when the values spread on both sides of zero; sequential blues otherwise. Sequential palettes suit one-directional data, and diverging palettes (rdbu, brbg, spectral, piyg, prgn, puor, rdgy, rdylbu) suit data around a midpoint.\n","enum":["gnbu","bugn","bupu","orrd","pubu","pubugn","purd","rdpu","ylgn","ylgnbu","ylorbr","ylorrd","blues","greens","greys","oranges","purples","reds","rdbu","brbg","spectral","piyg","prgn","puor","rdgy","rdylbu"],"type":"string"},"type":{"default":"auto","description":"Visualization type. `auto` picks from the data: ≤7 unique values → `groups` (discrete legend items), skewed distributions → `steps` (contiguous bar with break ticks), else `gradient` (continuous color scale). Explicit values pin the type. `gradient` and `steps` legends are horizontal-only: they render in a top/bottom band (default bottom), and a left/right `legend.position` is coerced to bottom with a warning. That rule depends on the data, so JSON Schema cannot express it and generated SDKs should not try to enforce it.\n","enum":["auto","gradient","steps","groups"],"type":"string"},"unit":{"description":"Short unit printed on every label, up to 16 characters: \"%\", \"°C\", \"t\", \"km²\". Put long units (\"litres of pure alcohol per person\") in `legend.title` instead. With `kind: \"currency\"` it is the currency code or symbol. Ignored for `kind: \"fraction\"` and when `format` is set, except {\"locale\": \"de-DE\"} (or {\"preset\": \"auto\", \"locale\": \"de-DE\"}), which keeps kind and unit in that number style. An explicit `format` decides only the labels: `kind` and `midpoint` still decide sequential vs diverging.","maxLength":16,"minLength":1,"type":"string"},"values":{"additionalProperties":{"type":"number"},"description":"Region key to numeric value. Keys go through the matching rules described above. Two keys resolving to the same region count as two matched keys, and the later value wins.\n","maxProperties":5000,"minProperties":1,"type":"object"}},"required":["values"],"type":"object"},"dryRun":{"default":false,"description":"Validate and preview without rendering: returns the region matching report, the resolved choropleth plan and a legend preview. No image and no monthly quota for keyed calls, but it still counts against the rate limit (one of the anonymous renders per hour without a key).","type":"boolean"},"layers":{"additionalProperties":false,"description":"Extra geographic layers to draw, e.g. {\"cities\": true, \"roads\": true}. Each map ships a subset (`layers` in list_maps and get_map_regions). Turning on a layer the map lacks is not an error: it is skipped with a `layer_unavailable` warning. Omitted layers are off, except layers a map turns on by default (currently `admin0` on ZIP-code maps); pass false to hide those.","properties":{"admin0":{"description":"Surrounding land, as a filled area of neighboring countries or states.","type":"boolean"},"admin0-mesh":{"description":"Country borders (mesh).","type":"boolean"},"admin1-mesh":{"description":"First-level subdivision borders (states, provinces, regions).","type":"boolean"},"admin1-mesh-inner":{"description":"State borders drawn over the map's own regions (county and ZIP maps, where `admin1-mesh` covers the surroundings only).","type":"boolean"},"admin2-mesh":{"description":"Second-level subdivision borders (counties, districts).","type":"boolean"},"cities":{"description":"Major cities as labeled points.","type":"boolean"},"lakes":{"description":"Major lakes.","type":"boolean"},"rivers":{"description":"Major rivers.","type":"boolean"},"roads":{"description":"Major roads.","type":"boolean"}},"type":"object"},"legend":{"additionalProperties":false,"properties":{"items":{"description":"Manual legend items, for regions-only maps. With `choropleth` or `categories` the legend is auto-generated and `items` is rejected with 400.\n","items":{"additionalProperties":false,"properties":{"color":{"examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"label":{"maxLength":120,"minLength":1,"type":"string"}},"required":["label","color"],"type":"object"},"maxItems":50,"minItems":1,"type":"array"},"position":{"description":"left/right take a column carved from the map area (180 px, widened up to 260 px for long labels or a legend title, at most 30% of the width); top/bottom take a horizontal band between the title and the map. Absent = picked per render: inside the map over empty space (sea, the margin beside a narrow map) when the legend fits there clear of land, else gradient/steps go to the bottom band and item/group legends to the left column or the bottom band, whichever leaves the map larger. Leave it out unless you need the legend outside the map. Gradient and steps legends are horizontal-only, so left/right becomes bottom with a warning. Band items wrap into rows; a bar too wide for a narrow image is reported as a `legend_overflow` warning.","enum":["left","right","top","bottom"],"type":"string"},"show":{"description":"Defaults to true whenever a legend exists (auto-generated for `choropleth`/`categories`, or from `legend.items`). Set false to suppress it and give the whole canvas to the map.\n","type":"boolean"},"subtitle":{"description":"Line under the legend title, at the label size in the regular weight, e.g. the source or the base year. Same wrapping as `title`.\n","maxLength":160,"minLength":1,"type":"string"},"title":{"description":"Heading above the legend rows. Send one for every data legend: what is measured, its unit and the year, e.g. \"Median household income (US$, 2023)\". It is never derived from `choropleth.unit`: short units (\"%\", \"°C\") go in `unit` and print on every label, long ones belong here. Long titles wrap to fit the legend; `\\n` forces a break.","maxLength":120,"minLength":1,"type":"string"}},"type":"object"},"locations":{"description":"Pin markers. They compose with every mode.","items":{"additionalProperties":false,"properties":{"color":{"examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"labelPosition":{"default":"bottom","description":"Where the pin's label sits relative to the pin.","enum":["top","bottom","left","right"],"type":"string"},"lat":{"maximum":90,"minimum":-90,"type":"number"},"lon":{"maximum":180,"minimum":-180,"type":"number"},"showLabel":{"default":true,"description":"Set false to render this pin without its label (the marker stays).\n","type":"boolean"},"title":{"maxLength":120,"minLength":1,"type":"string"}},"required":["title","lat","lon"],"type":"object"},"maxItems":200,"type":"array"},"mapId":{"description":"Map id from list_maps, e.g. `world`, `united-states`, `europe`, `united-states-california`. It is the map's slug on ultimaps.com (the last path segment, not the whole URL) and always resolves to the current edition.","examples":["united-states"],"maxLength":120,"minLength":1,"type":"string"},"onUnmatched":{"default":"warn","description":"warn = render anyway (unmatched regions get the no-data fill) and report. error = 400 with per-key suggestions. Recommended for production pipelines: error. Exception: in choropleth mode, ZERO matched keys is a 400 even under warn. Region keys in `style.labels.hide` count too: a typo there is a 400 under error.\n","enum":["warn","error"],"type":"string"},"output":{"additionalProperties":false,"description":"Image size and format. Keep the default width (1200 px) for images viewed in the conversation: much larger renders, and any scale of 2 or more, are too big to show inline and are returned as a link instead. Without an API key: width up to 1600 px, an explicit height up to 1600 px, scale 1. Hard caps: width×scale and height×scale ≤ 8192, and at most 4096×4096 pixels in total.","properties":{"format":{"default":"png","description":"`png` (default) or `svg`. SVG needs a Pro API key and is returned as a link. PDF is not available.","enum":["png","svg"],"type":"string"},"height":{"description":"Optional. When omitted, derives as a snug fit: the map's aspect ratio applied to the map area that remains after the title band (50 px) and any left/right legend column take their cut. A top/bottom legend adds its band (60 px for item legends, 70 px for gradient/steps bars, plus the height of a `legend.title`/`subtitle`) on top of that. A left/right legend too tall for that canvas (many items, a wrapped title) grows the derived height until it fits. An explicit height is delivered exactly, and the title and legend then shrink the map rather than the canvas.\n","maximum":4000,"minimum":100,"type":"integer"},"scale":{"default":1,"description":"PNG raster multiplier: the PNG is exactly round(width×scale) × round(height×scale) pixels. It has no effect on SVG output, but it is still tier-capped.\n","maximum":4,"minimum":1,"type":"number"},"width":{"default":1200,"description":"Image width in pixels. Default 1200.","maximum":4000,"minimum":100,"type":"integer"}},"type":"object"},"regions":{"additionalProperties":{"examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"description":"Override layer. Region key to hex color, applied AFTER choropleth/categories coloring and winning over it. Precedence: choropleth/categories paint first, `regions` overrides win, and everything else gets `choropleth.noDataColor` (choropleth mode), else `style.defaultRegionColor`, else the theme default (in choropleth mode, a contrasting gray when the theme's region color is too close to the palette's lightest class).\n","maxProperties":5000,"type":"object"},"style":{"additionalProperties":false,"properties":{"backgroundColor":{"examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"defaultRegionColor":{"description":"Fill for regions that get no color from `choropleth`/`categories`/`regions`. In choropleth mode `choropleth.noDataColor` overrides this. In categories mode this IS the no-data fill.\n","examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"labels":{"additionalProperties":false,"description":"Region labels, off by default. Each map ships its own curated label set; on a map with `labels: false` in list_maps, `show: true` renders nothing and a `labels_unavailable` warning is reported. `content`: \"name\" (default), \"value\" (the choropleth number in the legend's format, or the category label; regions without data get no label) or \"name_value\" (name above value; regions without data show the name only). `fit`: \"auto\" (default) shortens labels that don't fit or overlap (to the value on a choropleth, the name on a category map); labels never disappear, and any still overlapping are listed in a `labels_overlap` warning. \"off\" draws every label in full. `hide`: region keys whose label never shows (matched like data keys). A typo is auto-corrected or reported as unmatched; under `onUnmatched: \"error\"` an unmatched key fails the request like a data key.","properties":{"color":{"examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"content":{"default":"name","description":"What each label prints. `name` is the region's name. `value` prints the region's value instead: the choropleth number formatted by the resolved `choropleth.format` (the same string the legend and tooltips show), or the category label. Regions without a value get no label. `name_value` prints the name with the value on a line below it; regions without a value show the name only. Both value modes require `choropleth` or `categories`; with neither it is a `validation_error`.","enum":["name","value","name_value"],"type":"string"},"fit":{"default":"auto","description":"`auto` shortens labels that don't fit or overlap and never hides one; `off` draws every label in full. Under `auto` a `name_value` label too big for its region, or overlapping a higher-priority one, drops to its value (choropleth; the legend only gives a range) or its name (categories; the fill already says the category). Priority: curated outside labels (small regions labeled beside the map), then larger regions. Labels still overlapping are drawn and reported in a `labels_overlap` warning. Studio's own default is off; a map opened in Studio from a render keeps the value sent.","enum":["auto","off"],"type":"string"},"hide":{"description":"Region keys whose label never shows. Matched like data keys; corrections and misses are reported in `regionMatching`. Ignored with a `label_lists_ignored` warning when `show` is false.","items":{"maxLength":200,"minLength":1,"type":"string"},"maxItems":5000,"type":"array"},"show":{"default":false,"type":"boolean"}},"type":"object"},"mapBorder":{"additionalProperties":false,"properties":{"color":{"examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"width":{"maximum":10,"minimum":0,"type":"number"}},"type":"object"},"regionBorders":{"additionalProperties":false,"properties":{"color":{"examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"width":{"maximum":5,"minimum":0,"type":"number"}},"type":"object"},"theme":{"default":"paper","description":"Theme name from Studio's theme gallery (the server matches case-insensitively). Additive-only enum.\n","enum":["paper","newspaper","dark","earth","vintage","embossed","maritime","neon","outline","wireframe"],"type":"string"}},"type":"object"},"title":{"additionalProperties":false,"properties":{"color":{"examples":["#1D4ED8"],"pattern":"^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$","type":"string"},"position":{"default":"top","enum":["top","bottom"],"type":"string"},"text":{"maxLength":200,"minLength":1,"type":"string"}},"required":["text"],"type":"object"}},"required":["mapId"],"type":"object"}⟨77 unchanged words⟩ ,"reason":{"type":"string"},"regionsWithoutData":{"description":"Regions of the map with no value, drawn in the no-data color.","minimum":0,"type":"integer"},"type":{"type":"string"}},"type":" ⟨217 unchanged words⟩ {"code":{"type":"string"},"count":{"description":"`labels_overlap` only: region labels still overlapping.","minimum":0,"type":"integer"},"keys":{"description":"`labels_overlap` only: first overlapping region keys (up to 10).","items":{"type":"string"},"type":"array"},"message":{"type":"string"},"shortened":{"description":"`labels_overlap` only: labels shortened.","minimum":0,"type":"integer"}},"required":["code","message" ⟨12 unchanged words⟩