Code Monkey home page Code Monkey logo

raster-collection's Introduction

raster-collection

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.

World

openstreetmap.org

image

'urlTemplate' : 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
'subdomains'  : ['a','b','c'],
'attribution' : '&copy; <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' : '&copy; <a href="http://www.osm.org" target="_blank">OpenStreetMap</a> contributors'

image

'urlTemplate' : 'http://{s}.tile.thunderforest.com/cycle/{z}/{x}/{y}.png',
'subdomains'  : ['a','b','c'],
'attribution' : '&copy; <a href="http://www.osm.org" target="_blank">OpenStreetMap</a> contributors'

image

'urlTemplate' : 'http://{s}.tile.thunderforest.com/transport/{z}/{x}/{y}.png',
'subdomains'  : ['a','b','c'],
'attribution' : '&copy; <a href="http://www.osm.org" target="_blank">OpenStreetMap</a> contributors'

image

'urlTemplate' : 'http://tile-{s}.openstreetmap.fr/hot/{z}/{x}/{y}.png',
'subdomains'  : ['a','b','c'],
'attribution' : '&copy; <a href="http://www.osm.org" target="_blank">OpenStreetMap</a> contributors'

carto.com

image

'urlTemplate' : 'http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png',
'subdomains'  : ['a','b','c','d','e'],
'attribution' : '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, &copy; <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'],

image

'urlTemplate' : 'http://{s}.basemaps.cartocdn.com/light_nolabels/{z}/{x}/{y}.png',
'subdomains'  : ['a','b','c','d','e'],
'attribution' : '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, &copy; <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'],

image

'urlTemplate' : 'http://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png',
'subdomains'  : ['a','b','c','d','e'],
'attribution' : '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, &copy; <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'],

image

'urlTemplate' : 'http://{s}.basemaps.cartocdn.com/dark_nolabels/{z}/{x}/{y}.png',
'subdomains'  : ['a','b','c','d','e'],
'attribution' : '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, &copy; <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'],

China

ditu.google.cn

image

'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' : '&copy; <a href="http://ditu.google.cn/">Google</a>'

map.baidu.com (Projection : baidu)

image

'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' : '&copy; <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]

image

'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' : '&copy; <a href="http://map.baidu.com/">Baidu</a>'

image

'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' : '&copy; <a href="http://map.baidu.com/">Baidu</a>'

image

'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' : '&copy; <a href="http://map.baidu.com/">Baidu</a>'
  • Baidu Custom

    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' : '&copy; <a href="http://map.baidu.com/">Baidu</a>'
dark midnight grayscale hardedge
light redalert googlelite grassgreen
pink darkgreen bluish

gaode.com

image

'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' : '&copy; <a href="http://www.gaode.com/">Gaode.com</a>'

image

'urlTemplate' : 'http://webst{s}.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}',            
'subdomains'  : ['01','02','03','04'],
'attribution' : '&copy; <a href="http://www.gaode.com/">Gaode.com</a>'

image

'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' : '&copy; <a href="http://www.gaode.com/">Gaode.com</a>'

image

'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' : '&copy; <a href="http://www.gaode.com/">Gaode.com</a>'

tianditu

image

'urlTemplate' : 'http://t{s}.tianditu.com/DataServer?T=vec_w&x={x}&y={y}&l={z}',
'subdomains'  : ['1','2','3','4','5'],
'attribution' : '&copy; <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']

image

'urlTemplate' : 'http://t{s}.tianditu.com/DataServer?T=cva_w&x={x}&y={y}&l={z}',
'subdomains'  : ['1','2','3','4','5'],
'attribution' : '&copy; <a href="http://www.tianditu.cn/">天地图</a>'

image

'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' : '&copy; <a href="http://www.tianditu.cn/">天地图</a>'

image

'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' : '&copy; <a href="http://www.tianditu.cn/">天地图</a>'

image

'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' : '&copy; <a href="http://www.tianditu.cn/">Tianditu</a>'

image

'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' : '&copy; <a href="http://www.tianditu.cn/">Tianditu</a>'

raster-collection's People

Contributors

fuzhenn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

raster-collection's Issues

天地图的Projection不是EPSG:4326

天地图的投影坐标系应该是cgcs2000,与EPSG:4326的差别在于,cgcs2000是从第1级开始切2张瓦片,EPSG:4326是从第0级切两张瓦片:

zoom cgcs2000 EPSG:4326
0 1 x 2
1 1 x 2 2 x 4
2 2 x 4 4 x 8
... ... ...

当在leaflet中初始化map的时候使用L.CRS.EPSG4326,直接加载天地图的瓦片是无法正确加载的,得设置zoomOffset: 1.

另外,现在天地图的域名发生了变化,而且需要申请token。

使用谷歌地图切片是否需要license?

hi Zhen,
如果把谷歌地图切片源用在企业售卖的web app 里(通过leaflet这类开源api去加载),是否要去谷歌申请使用权,付费使用?
我看到有个谷歌的文档,如下:
https://enterprise.google.com/maps/terms/us/maps_purchase_agreement.html
然后有一个 google product 论坛的帖子https://productforums.google.com/forum/#!topic/maps/6AE2uNhuMtw,感觉好混乱。。

不知道你们有没有企业产品需要用到google 底图的经验?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.