我发布的geoserver服务顺利发布了,在浏览器显示如图
现在要在vue-amap中加载,代码如下
initMap() {
this.map = amapManager.getMap();
//this.map = new AMap.Map('container');
//地图初始化完成回调
this.$emit("callBackComponent", {
function: "loadMap"
})
/**
* 高德插件
* @type {AMap.Plugins}
*/
this.map.addControl(new AMap.ToolBar());
this.map.addControl(new AMap.MapType());
this.map.addControl(new AMap.OverView());
this.map.addControl(new AMap.Scale());
let wms = new AMap.TileLayer.WMS({
url:'http://172.16.221.78:8082/geoserver/cite/wms',
blend:false,
zooms:[0,8],
tileSize:512,
zIndex:2000,
params:{'LAYERS': 'cite:qzkklx',VERSION:'1.3.0',FORMAT:'image/png'}
})
console.log(wms.url);
wms.setMap(this.map);
}
但是地图上没有显示,我将wms的到的url, console.log(wms.url)出来,点击该链接跳出如下
请问如何解决这个没有得到BBOX的问题,我看文档是不需要写该属性的呀