Maps API
Embeddable HTML viewer
Request
Path Parameters
| Parameters | Type | Description |
|---|---|---|
| mapId | string |
Identifier of the map. See MapTiler Server Maps.
Example: streetsAdded in v1.0.0 |
Request example
http://localhost:3650/api/maps/streets/
Responses
| Code | Content | Description |
|---|---|---|
| 200 | text/html | |
| 404 |
The item does not exist |
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, ...).
Request
Path Parameters
| Parameters | Type | Description |
|---|---|---|
| mapId | string |
Identifier of the map. See MapTiler Server Maps.
Example: streetsAdded in v1.0.0 |
Request example
http://localhost:3650/api/maps/streets/style.json
Responses
| Code | Content | Description |
|---|---|---|
| 200 | application/json | Style JSON object https://docs.mapbox.com/mapbox-gl-js/style-spec/ StyleJSON |
| 404 |
The item does not exist |
Map symbols (sprites)
Map symbols (sprites) required to display the vector map.
Request
Path Parameters
| Parameters | Type | Description |
|---|---|---|
| mapId | string |
Identifier of the map. See MapTiler Server Maps.
Example: streetsAdded in v1.0.0 |
| scale | string |
Use “@2x” to get “retina”/HiDPI image.
Allowed values:
@2xAdded in v4.2.0 |
| format | string |
Allowed values:
png
jsonAdded in v1.0.0 |
Request example
http://localhost:3650/api/maps/streets/sprite.png
Responses
| Code | Content | Description |
|---|---|---|
| 200 | application/json | OK |
| 200 | image/png | |
| 404 |
The item does not exist |
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.
Request
Path Parameters
| Parameters | Type | Description |
|---|---|---|
| tileSize | integer |
Allowed values:
256Added in v1.0.0 |
| z | integer |
Zoom level. Specifies the tile’s zoom level. See Tiles à la Google Maps
Added in v1.0.0 |
| x | integer |
Column. Specifies the tile’s column. See Tiles à la Google Maps
Added in v1.0.0 |
| y | integer |
Row. Specifies the tile’s row. See Tiles à la Google Maps
Added in v1.0.0 |
| scale | string |
Use “@2x” to get “retina”/HiDPI image.
Allowed values:
@2xAdded in v4.2.0 |
| format | string |
The value depends on the Map settings.
Allowed values:
png
jpg
webpAdded in v4.2.0 |
Request example
http://localhost:3650/api/maps/{mapId}/10/536/358.png
Responses
| Code | Content | Description |
|---|---|---|
| 200 | image/* | |
| 400 |
Out of bounds / Invalid format |
|
| 404 |
The item does not exist |
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, ...).
Request
Path Parameters
| Parameters | Type | Description |
|---|---|---|
| mapId | string |
Identifier of the map. See MapTiler Server Maps.
Example: streetsAdded in v1.0.0 |
| tileSize | integer |
Allowed values:
256Added in v1.0.0 |
Request example
http://localhost:3650/api/maps/streets/tiles.json
Responses
| Code | Content | Description |
|---|---|---|
| 200 | application/json | https://raw.githubusercontent.com/mapbox/tilejson-spec/master/2.2.0/schema.json TileJSON |
| 404 |
The item does not exist |
OGC API - Tiles
Tileset landing page of the rasterized tiles. Can be used in software supporting the OGC API - Tiles v1.0 specification.
Request
Path Parameters
| Parameters | Type | Description |
|---|---|---|
| mapId | string |
Identifier of the map. See MapTiler Server Maps.
Example: streetsAdded in v4.6.0 |
Request example
http://localhost:3650/api/maps/streets/tiles
Responses
| Code | Content | Description |
|---|---|---|
| 200 | application/json | OK |
| 404 |
The item does not exist |
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.
Request
Path Parameters
| Parameters | Type | Description |
|---|---|---|
| mapId | string |
Identifier of the map. See MapTiler Server Maps.
Example: streetsAdded in v4.6.0 |
Request example
http://localhost:3650/api/maps/streets/tileMatrixSet
Responses
| Code | Content | Description |
|---|---|---|
| 200 | application/json | OK |
| 404 |
The item does not exist |
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.
Request
Path Parameters
| Parameters | Type | Description |
|---|---|---|
| mapId | string |
Identifier of the map. See MapTiler Server Maps.
Example: streetsAdded in v1.0.0 |
Request example
http://localhost:3650/api/maps/streets/WMTSCapabilities.xml
Responses
| Code | Content | Description |
|---|---|---|
| 200 | text/xml | |
| 404 |
The item does not exist |
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.
Request
Request example
http://localhost:3650/api/WMTSCapabilities.xml
Responses
| Code | Content | Description |
|---|---|---|
| 200 | text/xml | |
| 404 |
The item does not exist |
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.
Request
Path Parameters
| Parameters | Type | Description |
|---|---|---|
| mapId | string |
Identifier of the map. See MapTiler Server Maps.
Example: streetsAdded in v4.2.0 |
Request example
http://localhost:3650/api/maps/streets/wms?service=WMS&request=GetCapabilities
Responses
| Code | Content | Description |
|---|---|---|
| 200 | text/xml | |
| 404 |
The item does not exist |
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.
Request
Request example
http://localhost:3650/api/maps/wms?service=WMS&request=GetCapabilities
Responses
| Code | Content | Description |
|---|---|---|
| 200 | text/xml | |
| 404 |
The item does not exist |