1. 直接加載天地圖
地形圖:
http://t4.tianditu.gov.cn/DataServer?T=ter_w&x={x}&y={y}&l={z}&tk=key
街道圖:http://t4.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=key
影像圖:http://t4.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=key
影像標注:http://t4.tianditu.gov.cn/DataServer?T=cia_w&x={x}&y={y}&l={z}&tk=key
地形標注:http://t4.tianditu.gov.cn/DataServer?T=cta_w&x={x}&y={y}&l={z}&tk=key
矢量標注:http://t4.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=key
key需要去官網(wǎng)申請
調(diào)用加載圖層
L.tileLayer( address ).addTo(map)
2. 通過wmts加載
試了試網(wǎng)上的方法,感覺不靠譜因痛,等我弄懂了再來補儿子。