generate_static_map_image
Render a GeoJSON FeatureCollection/Feature to a static PNG map image (base64 data URL) — for embedding in reports/emails/documents, unlike share_map's interactive live page. basemap: 'topo', 'streets', or 'satellite'. Reuses the exact rendering path already used inside PDF map reports, no new map-rendering logic. Optional agol_token: for a single-Point input, renders through Esri's own Static Maps Service instead (real ArcGIS basemap tiles) — uses YOUR OWN AGOL credentials/quota, not GISGP's (multi-feature/non-point input always uses the default renderer regardless of token). Returns JSON: {ok, image_data_url, feature_count, width, height, basemap}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"geojson": "<geojson>"
},
"name": "generate_static_map_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | ||
| accent | No | #2563eb | |
| height | No | ||
| basemap | No | topo | |
| geojson | Yes | ||
| agol_token | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |