snippet
The code that puts a map on a page with a publishable key: a plain HTML version (one element and one script tag, no build step, works in any CMS), an npm/SDK version for a bundled app, the same map as a component for a React, Vue, Svelte or Angular app or a NativeScript phone app (each with its package to install), our Leaflet and OpenLayers plugins for raster maps (one load per map start, like the vector map), and an XYZ raster tile URL for tools that only take a tile URL (QGIS, WordPress map plugins; every 50 raster tiles count as one map load). Give the human the one that fits their site. Pair it with a built-in look or a published style URL from list_styles.
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": {
"key_id": "<key_id>"
},
"name": "snippet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zoom | No | Initial zoom, 0 to 20. Default 11. | |
| style | No | A built-in look (meadow, midnight, neon, vintage, blueprint, sakura) or a published style URL. Default meadow. | |
| center | No | Map centre as [longitude, latitude]. Default Dublin. | |
| key_id | Yes | A publishable key's id (uuid). Secret keys never go in a page. |