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

Changes

Changed in 3 of the 19 revisions of this API.14

    • added the media type image/jpeg for the response with the status

      response-media-type-added

    • added the media type image/png for the response with the status

      response-media-type-added

    • added the media type image/webp for the response with the status

      response-media-type-added

    • endpoint added

      endpoint-added

    • api path removed without deprecation

      api-path-removed-without-deprecation

    This revision also has 7 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog