当前位置:网站首页>Leaflet load day map
Leaflet load day map
2022-06-26 14:22:00 【Chaoying.】
Code
var map = L.map('map').setView([31, 121], 5);
const tdt_img = L.tileLayer('http://t{s}.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={y}&TILECOL={x}&tk=13aaaf7907b41c2e04034d430da1ce36', {
subdomains: [0, 1, 2, 3, 4, 5, 6, 7],
transparent: true,
zIndex: 3,
});
const tdt_cia = L.tileLayer('http://t{s}.tianditu.gov.cn/cia_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cia&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TileMatrix={z}&TileCol={x}&TileRow={y}&tk=13aaaf7907b41c2e04034d430da1ce36', {
subdomains: [0, 1, 2, 3, 4, 5, 6, 7],
transparent: true,
zIndex: 3,
});
const tdt=L.layerGroup([tdt_img,tdt_cia]).addTo(map);
var baseLayers = {
" Sky map ": tdt,
};
var mapCtrl = L.control.layers(baseLayers).addTo(map);
design sketch
边栏推荐
- 数学建模经验分享:国赛美赛对比/选题参考/常用技巧
- 虫子 内存管理 上
- 虫子 类和对象 中
- Bug memory management
- Educational Codeforces Round 117 (Rated for Div. 2)E. Messages
- 9项规定6个严禁!教育部、应急管理部联合印发《校外培训机构消防安全管理九项规定》
- mysql配置提高数据插入效率
- Eigen(3):error: ‘Eigen’ has not been declared
- Luogu p4145 seven minutes of God created questions 2 / Huashen travels around the world
- C language | the difference between heap and stack
猜你喜欢
Pointer
How to convert data in cell cell into data in matrix
array
ThreadLocal giant pit! Memory leaks are just Pediatrics
程序员必备,一款让你提高工作效率N倍的神器uTools
Free machine learning dataset website (6300+ dataset)
C language | file operation and error prone points
ThreadLocal巨坑!内存泄露只是小儿科...
8. Ribbon load balancing service call
7.Consul服务注册与发现
随机推荐
Cloudcompare - Poisson reconstruction
[ahoi2005] route planning
Original code, inverse code and complement code
Wechat applet Registration Guide
New specification of risc-v chip architecture
Difference between classification and regression
PHP非对称加密算法(RSA)加密机制设计
虫子 内存管理 上
From Celsius to the three arrows: encrypting the domino of the ten billion giants, and drying up the epic liquidity
BP neural network for prediction
Niuke challenge 53:c. strange magic array
虫子 STL string上
Codeforces Global Round 21A~D
在线牛人博主
Sword finger offer 06.24.35 Linked list
C language | Consortium
Global variable vs local variable
GC is not used in D
同花顺股票开户选哪个证券公司是比较好,比较安全的
Insect operator overloaded a fun