使用产品:iserver 11i 操作系统:win10 x64
问题详细描述:使用iserver发布的地图服务无法显示在地图上,想请教一下是什么原因?
以下是代码:
/引入天地图
var imgTDT = new L.supermap.tiandituTileLayer({
layerType: "img",
key: "",
// isLabel: true,
attribution: false,
});
this.map = L.map("map", {
crs: L.supermap.CRS.TianDiTu_Mercator,
center: [42.01, 128.1],
maxZoom: 18,
zoom: 12,
layers: [imgTDT],
attributionControl: false,
//全屏组件控制
fullscreenControl: {
pseudoFullscreen: false,
},
//绘图组件控制 默认填写成false
drawControl: false
});
//添加矢量图层
var vecUrl='http://localhost:8090/iserver/services/map-testWs/rest/maps/img%40MapWorld';
var tiledVectorLayer = new L.supermap.tiledVectorLayer(vecUrl, {
//layerNames:'Region2000_12_1@testFiles',
maxZoom: 18,
cacheEnabled:true,
transparent:true,
}).addTo(this.map)
服务详细设置