Skip to content
API Reference

Raster Tiles API Reference

Try the API in your browser

Base URL

https://rtc-cdn.maptoolkit.net/rtc

Endpoints

GET /{style}.json

Get TileJSON metadata for a raster tile style

Returns a TileJSON 2.2.0 document describing the raster tile source. Append @2x before .json for the retina tile source.

ParameterInTypeRequiredDescription
stylepathstringYesMap style name. Append @2x before the file extension for retina tiles (e.g. maptoolkit-maptoolkit.summer@2x.json).
StatusDescription
200TileJSON 2.2.0 document.

GET /{style}/{z}/{x}/{y}.png

Get a raster map tile

Returns a 256×256 PNG map tile at the given zoom level and tile coordinates. For retina displays, append @2x to the filename (e.g. /maptoolkit-maptoolkit.summer/12/2197/1420@2x.png) to get a 512×512 tile. Zoom level 0 is not supported — tiles start at zoom level 1.

ParameterInTypeRequiredDescription
stylepathstringYesMap style name. Append @2x before the file extension for retina tiles (e.g. maptoolkit-maptoolkit.summer@2x.json).
zpathintegerYesZoom level. Minimum value is 1.
xpathintegerYesTile column (X coordinate in the XYZ tile grid).
ypathintegerYesTile row (Y coordinate in the XYZ tile grid).
cachequerystringNoCache strategy to use. Default: active. One of: active, seeding.
rerenderquerystringNoForces the tile to be deleted from the cache and re-rendered. One of: true.
StatusDescription
200PNG tile image.
400

Bad request.

Rendering errors

  • Tile cannot be rendered — the map renderer failed to produce the tile.
  • Style initialization error message forwarded as-is.
404

Tile not found.

Known messages

  • Rastertiles start at zoomlevel 1 — zoom level 0 is not supported.
  • Tile does not exist — tile is outside the style’s coverage area.

Try it

The console below sends live requests against the endpoints above. You can browse it without an API key; Execute needs one, because every endpoint requires the api_key query parameter and returns 403 without it. Use Authorize to add your key. See First Steps if you do not have one yet.