s
o
u
l
s
j
i
e

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

//将天地图作为底图
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 @ 2022-11-04 11:11  soulsjie  阅读(278)  评论(0编辑  收藏  举报
你累吗?累就对了,当你觉得累时证明你在走上坡路!-----NotFoundObject - 2016-12-14 08:43