cesiumlab / cesiumlab/CesiumLab

天地图API及服务接口调用418错误

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
documentation question
Dominant language
No language data
Stars
50
Forks
23
PR merge metrics
No merged PRs in 30d

Description

@acound
天地图API及服务接口调用418错误

自2019年1月1日起地图API及服务接口调用都需要获得开发授权,授权的方法也很简单,地址:
http://lbs.tianditu.gov.cn/authorization/authorization.html.
1.注册用户
2.申请成为天地图开发者
申请个人开发,不需要审核,立即生效
3.获取服务许可(Key密钥)
申请新应用,也是立即生效

地图服务调用
以天地图影像瓦片底图(球面墨卡托投影)服务为例,在原有瓦片获取请求参数中增加授权参数即可,其余使用方法不变。例如:
http://t0.tianditu.gov.cn/img_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={x}&TILECOL={y}&tk=您的密钥

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.