想问下,用的是互联网地图中的百度地图,想用它作为底图,通过叠加地图添加一个坐标系相同的底图,但是地图没叠加上,没显示出来,怎么回事
代码如下:
var host = "http://localhost:8090/";
var map, themeService, themeGraph, themeParameters, themeLayer,
mapUrl = host + "iserver/services/map-xxs/rest/maps/weibinqu",
map = L.map('map', {
crs: L.CRS.Baidu,
center: [35.3, 113.89],
zoom: 10
});
L.supermap.baiduTileLayer("", {
noWrap: true
}).addTo(map);
L.supermap.tiledMapLayer(mapUrl).addTo(map);
L.supermap.tiledMapLayer(mapUrl, { noWrap: true }).addTo(map);