A collection of raster tile service’s urlTemplates and subDomains.
What is urlTemplate and subdomains? e.g.
'http://{s}.somedomain.com/blabla/{z}/{x}/{y}.png'
{s} means one of the available subdomains of the tile service, (used sequentially to help with browser parallel requests per domain limitation), {z} — zoom level, {x} and {y} — tile coordinates.
'urlTemplate' : 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
'subdomains' : ['a','b','c'],
'attribution' : '© <a href="http://www.osm.org" target="_blank">OpenStreetMap</a> contributors'
https
'urlTemplate' : 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
'subdomains' : ['a','b','c'],
'attribution' : '© <a href="http://www.osm.org" target="_blank">OpenStreetMap</a> contributors'
'urlTemplate' : 'http://{s}.tile.thunderforest.com/cycle/{z}/{x}/{y}.png',
'subdomains' : ['a','b','c'],
'attribution' : '© <a href="http://www.osm.org" target="_blank">OpenStreetMap</a> contributors'
'urlTemplate' : 'http://{s}.tile.thunderforest.com/transport/{z}/{x}/{y}.png',
'subdomains' : ['a','b','c'],
'attribution' : '© <a href="http://www.osm.org" target="_blank">OpenStreetMap</a> contributors'
'urlTemplate' : 'http://tile-{s}.openstreetmap.fr/hot/{z}/{x}/{y}.png',
'subdomains' : ['a','b','c'],
'attribution' : '© <a href="http://www.osm.org" target="_blank">OpenStreetMap</a> contributors'
'urlTemplate' : 'http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png',
'subdomains' : ['a','b','c','d','e'],
'attribution' : '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, © <a href="https://carto.com/attributions">CARTO</a>'
https
'urlTemplate' : 'https://cartodb-basemaps-{s}.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png',
'subdomains' : ['a','b','c','d'],
'urlTemplate' : 'http://{s}.basemaps.cartocdn.com/light_nolabels/{z}/{x}/{y}.png',
'subdomains' : ['a','b','c','d','e'],
'attribution' : '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, © <a href="https://carto.com/attributions">CARTO</a>'
https
'urlTemplate' : 'https://cartodb-basemaps-{s}.global.ssl.fastly.net/light_nolabels/{z}/{x}/{y}.png',
'subdomains' : ['a','b','c','d'],
'urlTemplate' : 'http://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png',
'subdomains' : ['a','b','c','d','e'],
'attribution' : '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, © <a href="https://carto.com/attributions">CARTO</a>'
https
'urlTemplate' : 'https://cartodb-basemaps-{s}.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png',
'subdomains' : ['a','b','c','d'],
'urlTemplate' : 'http://{s}.basemaps.cartocdn.com/dark_nolabels/{z}/{x}/{y}.png',
'subdomains' : ['a','b','c','d','e'],
'attribution' : '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, © <a href="https://carto.com/attributions">CARTO</a>'
https
'urlTemplate' : 'https://cartodb-basemaps-{s}.global.ssl.fastly.net/dark_nolabels/{z}/{x}/{y}.png',
'subdomains' : ['a','b','c','d'],
'urlTemplate' : 'http://www.google.cn/maps/vt?pb=!1m5!1m4!1i{z}!2i{x}!3i{y}!4i256!2m3!1e0!2sm!3i342009817!3m9!2sen-US!3sCN!5e18!12m1!1e47!12m3!1e37!2m1!1ssmartmaps!4e0&token=32965',
'attribution' : '© <a href="http://ditu.google.cn/">Google</a>'
'urlTemplate' : 'http://online{s}.map.bdimg.com/onlinelabel/?qt=tile&x={x}&y={y}&z={z}&styles=pl&scaler=1&p=1',
'subdomains' : [0,1,2,3,4,5,6,7,8,9],
'attribution' : '© <a href="http://map.baidu.com/">Baidu</a>'
https
'urlTemplate' : 'https://gss{s}.bdstatic.com/8bo_dTSlRsgBo1vgoIiO_jowehsv/tile/?qt=tile&x={x}&y={y}&z={z}&styles=pl&scaler=1&udt=20170927',
'subdomains':[0, 1, 2, 3]
'urlTemplate' : 'http://online{s}.map.bdimg.com/tile/?qt=tile&x={x}&y={y}&z={z}&styles=sl&v=020',
'subdomains' : [0,1,2,3,4,5,6,7,8,9],
'attribution' : '© <a href="http://map.baidu.com/">Baidu</a>'
'urlTemplate' : function (x, y, z) {
return 'http://its.map.baidu.com:8002/traffic/TrafficTileService?label=web2D&v=081&level=' + z + '&y=' + y + '&x=' + x + '&time=' + new Date().getTime();
},
'attribution' : '© <a href="http://map.baidu.com/">Baidu</a>'
'urlTemplate' : 'http://shangetu{s}.map.bdimg.com/it/u=x={x};y={y};z={z};v=009;type=sate&fm=46',
'subdomains' : [0,1,2,3,4,5,6,7,8,9],
'attribution' : '© <a href="http://map.baidu.com/">Baidu</a>'
Baidu Custom’s style is decided by customid in URL, screen shots for different customid is as below:
'urlTemplate' : 'http://api{s}.map.bdimg.com/customimage/tile?&x={x}&y={y}&z={z}&scale=1&customid={customid}',
'subdomains' : [0, 1, 2],
'attribution' : '© <a href="http://map.baidu.com/">Baidu</a>'
dark | midnight | grayscale | hardedge |
![]() |
![]() |
![]() |
![]() |
light | redalert | googlelite | grassgreen |
![]() |
![]() |
![]() |
![]() |
pink | darkgreen | bluish | |
![]() |
![]() |
![]() |
'urlTemplate' : 'http://webrd{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}',
'subdomains' : ['01','02','03','04'],
'attribution' : '© <a href="http://www.gaode.com/">Gaode.com</a>'
'urlTemplate' : 'http://webst{s}.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}',
'subdomains' : ['01','02','03','04'],
'attribution' : '© <a href="http://www.gaode.com/">Gaode.com</a>'
'urlTemplate' : 'http://webst{s}.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&scale=1&style=8',
'subdomains' : ['01','02','03','04'],
'attribution' : '© <a href="http://www.gaode.com/">Gaode.com</a>'
'urlTemplate' : function (x, y, z) {
return 'http://tm.amap.com/trafficengine/mapabc/traffictile?v=1.0&;t=1&z=' + z + '&y=' + y + '&x=' + x + '&t=' + new Date().getTime();
},
'attribution' : '© <a href="http://www.gaode.com/">Gaode.com</a>'
'urlTemplate' : 'http://t{s}.tianditu.com/DataServer?T=vec_w&x={x}&y={y}&l={z}',
'subdomains' : ['1','2','3','4','5'],
'attribution' : '© <a href="http://www.tianditu.cn/">天地图</a>'
https
urlTemplate:'https://t{s}.tianditu.com/DataServer?T=cva_c&x={x}&y={y}&l={z}',
subdomains:['1', '2', '3', '4', '5']
'urlTemplate' : 'http://t{s}.tianditu.com/DataServer?T=cva_w&x={x}&y={y}&l={z}',
'subdomains' : ['1','2','3','4','5'],
'attribution' : '© <a href="http://www.tianditu.cn/">天地图</a>'
'tileSystem' : [1, -1, -180, 90],
'urlTemplate' : 'http://t{s}.tianditu.com/DataServer?T=vec_c&x={x}&y={y}&l={z}',
'subdomains' : ['1','2','3','4','5'],
'attribution' : '© <a href="http://www.tianditu.cn/">天地图</a>'
'tileSystem' : [1, -1, -180, 90],
'urlTemplate' : 'http://t{s}.tianditu.com/DataServer?T=cva_c&x={x}&y={y}&l={z}',
'subdomains' : ['1','2','3','4','5'],
'attribution' : '© <a href="http://www.tianditu.cn/">天地图</a>'
'urlTemplate' : 'http://t{s}.tianditu.cn/eva_c/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=eva&tileMatrixSet=c&TileMatrix={z}&TileRow={y}&TileCol={x}&style=default&format=tiles',
'subdomains' : ['1','2','3','4','5'],
'attribution' : '© <a href="http://www.tianditu.cn/">Tianditu</a>'
'urlTemplate' : 'http://t{s}.tianditu.cn/vec_c/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=vec&tileMatrixSet=c&TileMatrix={z}&TileRow={y}&TileCol={x}&style=default&format=tiles',
'subdomains' : ['1','2','3','4','5'],
'attribution' : '© <a href="http://www.tianditu.cn/">Tianditu</a>'