s
o
u
l
s
j
i
e

ArcGIS JS API 将天地图设置为底图

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//将天地图作为底图
var tiledLayer = new gisModules.WebTileLayer({
urlTemplate:
"http://{subDomain}.tianditu.gov.cn/DataServer?T=vec_w&x={col}&y={row}&l={level}&tk=63c28a6684f96067de4dcf4740422f32",
subDomains: ["t0", "t1", "t2", "t3","t4", "t5", "t6", "t7"],
});
var tiledLayer_poi = new gisModules.WebTileLayer({
urlTemplate:
"http://{subDomain}.tianditu.gov.cn/DataServer?T=cva_w&x={col}&y={row}&l={level}&tk=63c28a6684f96067de4dcf4740422f32",
subDomains: ["t0", "t1", "t2", "t3","t4", "t5", "t6", "t7"],
});
map = new Map({
basemap: {
baseLayers: [tiledLayer, tiledLayer_poi]
}
});

  

posted @   soulsjie  阅读(284)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 上周热点回顾(2.24-3.2)
历史上的今天:
2017-11-04 jQuery学习之------html()、text()和val()
2017-11-04 jQuery学习之------对标签属性的操作
2017-11-04 jQuery学习之------选择器
你累吗?累就对了,当你觉得累时证明你在走上坡路!-----NotFoundObject - 2016-12-14 08:43
点击右上角即可分享
微信分享提示