v16

latestOpenAPI 3.1.0MIT OR Apache-2.0raw.githubusercontent.com2026-08-0113826.6 KB
crate::srv

Render a static map image at an arbitrary camera into `{size}.{format}`.

get/style/{style_id}/static/{camera}/{size}.{format}

Path parameters

style_idstring required
camerastring required

lon,lat,zoom[@bearing[,pitch]] or minLon,minLat,maxLon,maxLat.

sizestring required

WIDTHxHEIGHT[@SCALEx] - e.g. 800x600 or 400x300@2x.

format'png' | 'jpg' | 'webp' required

Image format requested in the URL.

Output encoding. png, jpg, or webp (canonical names only; .jpeg is redirected to .jpg via [redirect_static_jpeg]).

Response

Rendered static map image