Maps API
Maps API reference
Maps
- get/maps/{mapId}/
- get/maps/{mapId}/style.json
- get/maps/{mapId}/sprite{scale}.{format}
- get/maps/{mapId}/{tileSize}/{z}/{x}/{y}{scale}.{format}
- get/maps/{mapId}/{tileSize}/tiles.json
- get/maps/{mapId}/tiles
- get/maps/{mapId}/tileMatrixSet
- get/maps/{mapId}/WMTSCapabilities.xml
- get/WMTSCapabilities.xml
- get/maps/{mapId}/wms?service=WMS&request=GetCapabilities
- get/maps/wms?service=WMS&request=GetCapabilities
Embeddable HTML viewer
- Type: stringmap
Id requiredIdentifier of the map. See MapTiler Server Maps
http://localhost:3650/admin/.
- text/html
- 404
The item does not exist
curl http://localhost:3650/api/maps/streets/
OK
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 Server Maps
http://localhost:3650/admin/.
- application/json
- 404
The item does not exist
curl http://localhost:3650/api/maps/streets/style.json
{}OK
Map symbols (sprites)
Map symbols (sprites) required to display the vector map.
- Type: stringmap
Id requiredIdentifier of the map. See MapTiler Server Maps
http://localhost:3650/admin/. - enumscaleconst:@2x
Use "@2x" to get "retina"/HiDPI image.
values- @2x
- Type: string enumformatrequiredvalues
- png
- json
- 404
The item does not exist
curl http://localhost:3650/api/maps/streets/sprite@2x.png
OK
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.
- 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 enumformatrequired
The value depends on the Map settings.
values- png
- jpg
- webp
- map
Id
- image/*
- 400
Out of bounds / Invalid format
- 404
The item does not exist
curl 'http://localhost:3650/api/maps/{mapId}/256/1/1/1@2x.png'
@filenameOK
TileJSON
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 Server Maps
http://localhost:3650/admin/. - enumtile
Size const:256Integer numbers.
values- 256
- application/json
- 404
The item does not exist
curl http://localhost:3650/api/maps/streets/256/tiles.json
{}OK
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 Server Maps
http://localhost:3650/admin/.
- application/json
- 404
The item does not exist
curl http://localhost:3650/api/maps/streets/tiles
stringOK
OGC 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 Server Maps
http://localhost:3650/admin/.
- application/json
- 404
The item does not exist
curl http://localhost:3650/api/maps/streets/tileMatrixSet
stringOK
WMTS 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 Server Maps
http://localhost:3650/admin/.
- text/xml
- 404
The item does not exist
curl http://localhost:3650/api/maps/streets/WMTSCapabilities.xml
stringOK
WMTS Capabilities for all layers
WMTS Capabilities XML document describing the metadata of all map layers as well as link to the XYZ tiles. Can be used with various GIS software (e.g. QGIS) to display the map.
- text/xml
- 404
The item does not exist
curl http://localhost:3650/api/WMTSCapabilities.xml
stringOK
WMS Capabilities
WMS Capabilities XML document describing the metadata of the map. Can be used with various GIS software (e.g. QGIS) to display the map.
- Type: stringmap
Id requiredIdentifier of the map. See MapTiler Server Maps
http://localhost:3650/admin/.
- text/xml
- 404
The item does not exist
curl 'http://localhost:3650/api/maps/streets/wms?service=WMS&request=GetCapabilities'
stringOK
WMS Capabilities for all layers
WMS capabilities XML document describing the metadata of all map layers. Can be used with various GIS software (e.g. QGIS) to display the map.
- text/xml
- 404
The item does not exist
curl 'http://localhost:3650/api/maps/wms?service=WMS&request=GetCapabilities'
stringOK