---
title: "Render a static map"
method: POST
path: "/render/static"
tags: ["delivery"]
---

# Render a static map

`POST /render/static`

## Request

- Base URL: `https://api.mapsource.io`
- URL: `https://api.mapsource.io/render/static`
- Auth: HTTP bearer

Renders a viewport and overlays as a PNG. Dark and light styles use raster tiles; other style names use vector rendering. The x-mapsource-render header includes style, dataset, result-handle, render-engine, and request metadata.

When to use: Generate static maps for reports, previews, and geographic visualizations.

When not to use: Use data endpoints for feature attributes or editable geometry.

## Request body

- object
  - `lat` number: Viewport centre latitude.
  - `lon` number: Viewport centre longitude.
  - `zoom` number: Zoom level.
  - `bbox` unknown[]: [west, south, east, north]; fits the viewport to it.
    - unknown
  - `width` integer: Image width.
  - `height` integer: Image height.
  - `style` string: dark or light composite raster; any other name is a preset or saved profile rendered as vector.
  - `styleRevision` integer: Saved profile revision to use for rendering.
  - `bearing` number: Vector renders only.
  - `pitch` number: Vector renders only.
  - `geojson` object: GeoJSON to draw, or a result handle.
  - `markers` unknown[]: Up to fifty markers with optional labels.
    - unknown

## Response `200`

Render a static map

## Other responses

- `400`: Error with a stable machine code.
- `401`: Error with a stable machine code.
- `410`: A result handle passed as geojson has expired.
- `429`: Error with a stable machine code.
- `500`: Error with a stable machine code.

---

[API](https://skmtc.dev/mapsource/apis/mapsource-overpass-api.md) · [All operations](https://skmtc.dev/mapsource/apis/mapsource-overpass-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mapsource/apis/mapsource-overpass-api/revisions/8af8c2769e7b?raw)
