Static Map Image Tool
static_map_image_toolGenerate static map images with custom center, zoom, size, style, and overlays. Supports markers, paths, and GeoJSON for geospatial visualization.
Instructions
Generates a static map image from Mapbox Static Images API. Supports center coordinates, zoom level (0-22), image size (up to 1280x1280), various Mapbox styles, and overlays (markers, paths, GeoJSON). Returns PNG for vector styles, JPEG for raster-only styles.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | Yes | Image size as object with width and height properties in pixels. Each dimension must be between 1 and 1280 pixels | |
| zoom | Yes | Zoom level (0-22). Fractional zoom levels are rounded to two decimal places | |
| style | No | Mapbox style ID in the format username/style-id (e.g., mapbox/streets-v12, mapbox/satellite-v9, mapbox/dark-v11) | mapbox/streets-v12 |
| center | Yes | Center point of the map as coordinate object with longitude and latitude properties. Longitude: -180 to 180, Latitude: -85.0511 to 85.0511 | |
| overlays | No | Array of overlays to add to the map. Overlays are rendered in order (last item appears on top) | |
| highDensity | No | Whether to return a high-density (2x) image |