类型修改为3

瓦片地图
dev
Tuzki 2 years ago
parent ec3b350901
commit 1dd28b7e08
  1. 2
      ruoyi-ui/src/views/picture/network-market/index.vue
  2. 24
      ruoyi-ui/src/views/picture/resource-monitoring/index.vue

@ -209,7 +209,7 @@ export default {
"pageNum": 1
},
params2 : {
"type": "2",
"type": "3",
"mood": "1",
"pageSize": 10,
"pageNum": 1

@ -675,15 +675,23 @@ export default {
});
},
coverMap(){
const imageLayer = new AMap.ImageLayer({
url: covers,
bounds: new AMap.Bounds(
[115.707797, 37.824846],
[115.71447, 37.834998]
),
zooms: [10, 20]
// const imageLayer = new AMap.ImageLayer({
// url: covers,
// bounds: new AMap.Bounds(
// [115.707797, 37.824846],
// [115.71447, 37.834998]
// ),
// zooms: [10, 20]
// });
const tilerLayer = new AMap.TileLayer({
zIndex:10,
// getTileUrl:'tiles/[z]/tile-[x]_[y].png',
getTileUrl: function(x,y,z){
console.log('https://www.lbgjtoa.com/appImg/tiles/' + z + '/tile-' + x +'_' + y + '.png')
return 'https://www.lbgjtoa.com/appImg/tiles/' + z + '/' + x +'_' + y + '.png'
}
});
imageLayer.setMap(this.map)
tilerLayer.setMap(this.map)
},
getNavPrev() {
if (this.navPage > 0) {

Loading…
Cancel
Save