申请了天地图北京上面的服务 eg: utl=http://www.bjmap.gov.cn:8081/geoesb/proxy/services/maps/rest/ key
iserver调用代码
function init() {
map = new SuperMap.Map ("map");
layer = new SuperMap.Layer.TiledDynamicRESTLayer("World", url,
null, {maxResolution:"auto"});
layer.events.on({"layerInitialized": addLayer});
}
function addLayer() {
//将Layer图层加载到Map对象上
map.addLayer(layer);
//出图,map.setCenter函数显示地图
map.setCenter(new SuperMap.LonLat(116.3742, 39.94543), 8);
}
报错,请问如何解决?