Maps API
Maps API reference
Maps
Embeddable HTML viewer
- Type: stringmap
Id requiredIdentifier of the map. See MapTiler Maps.
- text/html
curl 'https://api.maptiler.com/maps/streets-v4/?key=YOUR_SECRET_TOKEN'
Style JSON of the map
Style JSON describing the map cartography. Can be used with various libraries to display a vector map (e.g. Mapbox GL JS, OpenLayers, ...).
- Type: stringmap
Id requiredIdentifier of the map. See MapTiler Maps.
- application/json
curl 'https://api.maptiler.com/maps/streets-v4/style.json?key=YOUR_SECRET_TOKEN'
{}Map symbols (sprites)
Map symbols (sprites) required to display the vector map.
Deprecated: use Sprites API.
- Type: stringmap
Id requiredIdentifier of the map. See MapTiler Maps.
- enumscaleconst:@2xvalues
- @2x
- Type: string enumformatrequiredvalues
- png
- json
curl https://api.maptiler.com/maps/streets-v4/sprite@2x.png
Raster XYZ tiles
Rasterized tiles (XYZ) of the map. Can be used with various libraries to display a raster map (e.g. Leaflet, OpenLayers, ...). It's usually better (if possible) to use the TileJSON rather than using the tile URL directly.
- Type: stringmap
Id requiredIdentifier of the map. See MapTiler Maps.
- enumtile
Size/ const:256Integer numbers.
values- 256
- Type: integerzrequired
Zoom level. Specifies the tile's zoom level. See Tiles à la Google Maps
- Type: integerxrequired
Column. Specifies the tile's column. See Tiles à la Google Maps
- Type: integeryrequired
Row. Specifies the tile's row. See Tiles à la Google Maps
- enumscaleconst:@2x
Use "@2x" to get "retina"/HiDPI image.
values- @2x
- Type: string enumformatrequiredvalues
- png
- jpg
- webp
- basis
- image/*
- 400
Out of bounds / Invalid format
curl 'https://api.maptiler.com/maps/streets-v4/256/1/1/1@2x.png?key=YOUR_SECRET_TOKEN'
@filenameTileJSON
TileJSON describing the metadata of the map as well as link to the XYZ tiles. Can be used with various libraries to display a raster map (e.g. Leaflet, OpenLayers, ...).
- Type: stringmap
Id requiredIdentifier of the map. See MapTiler Maps.
- enumtile
Size/ const:256Integer numbers.
values- 256
- application/json
curl 'https://api.maptiler.com/maps/streets-v4/256/tiles.json?key=YOUR_SECRET_TOKEN'
{}OGC API - Tiles
Tileset landing page of the rasterized tiles. Can be used in software supporting the OGC API - Tiles v1.0 specification.
- Type: stringmap
Id requiredIdentifier of the map. See MapTiler Maps.
- application/json
curl 'https://api.maptiler.com/maps/streets-v4/tiles?key=YOUR_SECRET_TOKEN'
stringOGC API TileMatrixSets
Description of the tileset tile matrix sets according to the OGC Web API. This resource is linked from the OGC API - Tiles endpoint.
- Type: stringmap
Id requiredIdentifier of the map. See MapTiler Maps.
- application/json
curl 'https://api.maptiler.com/maps/streets-v4/tileMatrixSet?key=YOUR_SECRET_TOKEN'
stringWMTS Capabilities
WMTS Capabilities XML document describing the metadata of the map as well as link to the XYZ tiles. Can be used with various GIS software (e.g. QGIS) to display the map.
- Type: stringmap
Id requiredIdentifier of the map. See MapTiler Maps.
- text/xml
curl 'https://api.maptiler.com/maps/streets-v4/WMTSCapabilities.xml?key=YOUR_SECRET_TOKEN'
string