Skip to main content

Changelog

2026-11-28 — region shapes refreshed from OpenStreetMap​

Every country scope's regions were rebuilt from a fresh OpenStreetMap export. There are now 198 country scopes (was 177) and 4,002 regions, with boundaries that follow recent reforms: Vietnam's 34 provinces (2025), Norway's 15 counties (2024), Ethiopia's regions created 2020–2023, Kazakhstan's three new regions (2022) and Algeria's ten provinces added in 2019.

New scopes (21): AL, BQ, CD, CZ, GD, JM, KI, LI, LV, MG, MH, MK, MT, MW, NP, PS, SC, ST, VN, WF, WS.

Also changed:

  • GB draws all of the UK at local-authority level: 217 counties, unitary authorities, London boroughs, Scottish council areas, Welsh principal areas and Northern Ireland districts. Before this it drew only the 22 Welsh areas.
  • Coastlines. Regions are cut to land, so bays and estuaries are no longer filled in (Tokyo Bay, the Bay of Bangkok, the Bohai Sea).
  • Enclosed cities such as Berlin, Vienna and Saint Petersburg sit in a hole in the region around them instead of being drawn on top of it.
  • scope=UA draws Crimea hatched as a disputed area, the way scope=IN and scope=PK draw the two sides of Kashmir. It is not a data region.
  • Madagascar's split regions are MG-13A, MG-13B, MG-16A and MG-16B.

Renamed codes keep working. A request with an old code draws the region under its new code, and the response lists each one in X-Geo-Warnings, for example renamed-ids:KZ-ALA>KZ-75.

CountryOld → new
KazakhstanKZ-AKM→KZ-11, AKT→15, ALA→75, AST→71, ATY→23, KUS→39, KZY→43, MAN→47, PAV→55, SEV→59, SHY→79, YUZ→61, ZAP→27, ZHA→31
Guatemalathe letter codes became GT-01…GT-22 (GT-GU→GT-01, GT-PE→GT-17, …)
IndiaIN-CT→IN-CG, IN-OR→IN-OD, IN-TG→IN-TS, IN-UT→IN-UK
EstoniaEE-44→45, 49→50, 51→52, 57→56, 59→60, 65→64, 67→68, 70→71, 78→79, 82→81, 86→87
NorwayNO-01→NO-31, 02→32, 06→33, 07→39, 08→40, 19→55, 20→56
OthersCV-CV→CV-SV, FR-COR→FR-20R, ZA-GT→ZA-GP, ZA-NL→ZA-KZN

Codes that no longer draw anything come back as unknown-ids, because the region was merged or split and no one code replaces it:

  • Norway NO-04, 05 (now NO-34), NO-09, 10 (now NO-42), NO-12, 14 (now NO-46)
  • India IN-DD, IN-DN (now IN-DH)
  • South Korea KR-29 (Gwangju, now part of KR-46)
  • Pakistan PK-TA (now part of PK-KP)
  • Ethiopia ET-SN (split)
  • Kazakhstan KZ-ALM, KZ-KAR, KZ-VOS (split in 2022)
  • Mauritania MR-NKC (now MR-13, 14, 15)
  • Qatar QA-GH, QA-JB, QA-JU
  • Monaco MC-JE, MC-SD, MC-VR

Iran: check your codes. ISO renumbered Iran's provinces in 2020, and the new numbers reuse the old ones for different provinces: IR-11 was Zanjan and is now Sistan and Baluchestan. An old Iranian code still draws, but on a different province, so maps keyed by the pre-2020 numbers need re-keying. The same applies to Congo, where CG-2 and CG-7 swapped places.

Breaking-change semantics: every country-scope render changes, because the geometry did. Renamed codes draw as before, with a warning. Merged and split codes stop drawing. Iranian codes and CG-2/CG-7 move to a different region.


2026-10-14 — diverging scales around any midpoint​

colorScale=diverging with classification=custom now uses the breaks: they are upper bin edges, and the scale splits at the middle one. breaks=1.3,1.6,2.1,3,4,6.2 colours everything at or below 2.1 in the low hue and everything above in the high hue, three shades each. See Color scales → Diverging.

The dark themes' diverging ramp is now red ↔ teal-green (was coral ↔ blue): the deep blue end sat too close to the navy ocean, and teal still separates from red under red-green colour blindness.

Breaking-change semantics: dark-theme diverging maps change colour (red ↔ teal instead of coral ↔ blue). Requests that already sent colorScale=diverging&classification=custom&breaks=…, where the breaks used to be ignored, now band by them. Every other URL renders as before.


2026-06-06 — data= grammar extensions​

Two new pair shapes on the data= parameter, lifted from the JSON body to the URL endpoint. No new query parameters; existing requests render identically.

What's new:

  • data=id:#hex — color-only paint per region, no value, no scale binning. Use this for "color X red, Y blue, Z green" requests; pair with legend=false since there's no scale to show. Equivalent to the previous data=id:0:#hex placeholder, with the noise removed. See Color overrides.
  • data=id:label — text-label categorical buckets. Each distinct label gets a distinct color from the theme's categorical palette; the legend names the buckets. The renderer auto-selects colorScale=categorical on the GET endpoint when string values are present. See Color scales → Categorical.
  • JSON body — regions[].value now accepts a string (max 64 chars) in addition to the existing number / null shapes.

Breaking-change semantics: none. Every URL that worked before still produces a byte-identical render. The grammar is strictly additive.

New error code:

  • mixed_data_types (400) — returned when a single request mixes numeric values (e.g. US:200) with string labels (e.g. CN:NATO). Color-only pairs (id:#hex) are exempt and mix freely with either kind. See Errors.

2026-05-25 — Public preview​

Initial public release of the maproll rendering API at https://api.maproll.io.

What shipped:

  • Two endpoints: GET /map.{svg,png} (URL-only, cache-friendly) and POST /render/map (full JSON body).
  • Two scopes: world (countries, OSM-derived) and RO (Romania regions, OSM-derived). Both available at low, medium, and high detail levels.
  • Six themes: light, light-blue, light-mono, dark, dark-blue, dark-mono.
  • Five projections: naturalEarth1, albersUsa, conicConformal, mercator, equalEarth.
  • Color scales: sequential, diverging, categorical with Jenks, quantile, equal-interval, and custom break classification.
  • Proportional symbols: sized circles, optionally dual-encoded with choropleth fill.
  • Five fill patterns: stripes, stripes-diagonal, dots, crosshatch, solid-outline.
  • 30 marker icons with label positioning.
  • Routes: great-circle paths with optional arrows, dashes, and custom colors.
  • Region labels: ISO mode and explicit id lists, with labelMinArea filtering.
  • Cartographic overlays: north arrow, scale bar, graticule.
  • Annotations: per-region SVG <title> hover tooltips.
  • Title, subtitle, attribution, and logo branding fields.
  • Three legend layouts: vertical, horizontal, continuous.
  • Immutable caching on GET /map.{svg,png}: Cache-Control: public, max-age=31536000, immutable + ETag + 304 Not Modified support. POST /render/map returns an ETag and X-Cache, but no Cache-Control.
  • PNG rasterisation via @resvg/resvg-js (no headless browser).