Make a Thailand map by link
mapscale_newsroom_mapMake a choropleth map of Thailand by province or district with NO API key and no studio clicks: returns the MapScale newsroom studio link, a bare-map link, ready-to-paste responsive embed code and SVG/PNG image links, for a curated dataset (elderly share, rainfall, income, population density, forest, rice...) or the user's own numbers by province/district name (English or Thai). Free for editorial use with a 'Map: MapScale' credit linking to mapscale.io. Use for any "map these numbers" / "map X across Thailand" request from a journalist or writer.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "mapscale_newsroom_map"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Bars in the ranking chart. | |
| data | No | The user's own numbers, one per province or district: [{place, value}]. place is an English or Thai name or a PCODE such as TH10. | |
| lang | No | Map label language. MCP client UTF-8 budget: 512 bytes. | |
| play | No | Embed link only: play the year-by-year animation once when the map loads (datasets with history). | |
| year | No | Year to show for a dataset with history (it has a year slider, province charts and an animated GIF in the studio): warming and temperature 1900-2024, pm25 and unhealthy-air 2024-2025, flood-extent 2009-2014 (default 2011). Other datasets ignore it; an unknown year is dropped. Images (SVG/PNG) honour it. | |
| chart | No | Which chart tab opens by default in the studio and embed (datasets with history). MCP client UTF-8 budget: 512 bytes. | |
| focus | No | Zoom to these provinces (PCODEs like TH50 or names); wins over region. | |
| notes | No | Callouts pinned to provinces: [{pcode, text}] (text max 80 characters, no statistics). | |
| shape | No | Embed and image shape. MCP client UTF-8 budget: 512 bytes. | wide |
| stats | No | Big-number cards under the map: [{pcode, metric: value|change, label?}]. The number comes from the data. | |
| style | No | Map look; light and dark also work. MCP client UTF-8 budget: 512 bytes. | |
| title | No | Map title (max 200 characters). MCP client UTF-8 budget: 512 bytes. | |
| colors | No | Colour ramp. MCP client UTF-8 budget: 512 bytes. | |
| locale | No | Language of the studio page the links open. MCP client UTF-8 budget: 512 bytes. | en |
| points | No | Point data instead of regions: [{lat, lng, label?, value?}]. | |
| region | No | Zoom to one of the six regions; the rest of Thailand is drawn pale. MCP client UTF-8 budget: 512 bytes. | |
| source | No | The data source the journalist should credit (max 300 characters). MCP client UTF-8 budget: 512 bytes. | |
| values | No | Label every province with its value. | |
| caption | No | Text under the map (max 300 characters). Never write numbers: use placeholders such as {TH50.value}, {TH50.change}, {TH50.name}, {TH50.rank}, {median.value}, {median.change}, {year}, {compareYear}, {unit}; the page fills them from the data. MCP client UTF-8 budget: 512 bytes. | |
| compare | No | Datasets with history: a second year. The map then shows the CHANGE (year minus compare), with a diverging cool-warm palette centred on 0. Example: dataset=warming, year=2024, compare=1950. | |
| dataset | No | Curated Thailand dataset: population, elderly, rain (3-month rainfall vs normal), rainfall-normal, income, city (built-up share), forest, farms, rice, durian (registered durian-growing households by province, 2024), district-population, air (PM2.5, 2024-2025), warming, temperature, flood (2011; flood-extent by year), flash-flood, fires, landslides, sinkholes, earthquake (2025). Used when data and points are absent. MCP client UTF-8 budget: 512 bytes. | |
| subtitle | No | Map subtitle (max 200 characters). MCP client UTF-8 budget: 512 bytes. | |
| highlight | No | Provinces (PCODEs like TH10 or names) to outline and label with name and value. |