地图内容

This commit is contained in:
978184212@qq.com 2026-07-30 17:02:24 +08:00
parent 314b871493
commit 246f34358c
1 changed files with 22 additions and 17 deletions

View File

@ -187,26 +187,31 @@
monitorRender() {//
this.soilStationList.forEach((item, index) => {
let iconPath = '';
let width = 35;
let height = 35;
let width = 32;
let height = 47;
//
switch(item.type) {
case 'soil':
iconPath = this.baseUrl + '/icon/device/soil.png';
width = 32;
height = 47;
break;
case 'camera':
iconPath = this.baseUrl + '/icon/device/cam.png';
width = 45;
height = 45;
break;
default:
iconPath = this.baseUrl + '/icon/device/default.png';
}
// switch(item.type) {
// case 'soil':
// iconPath = this.baseUrl + '/icon/device/soil.png';
// width = 32;
// height = 47;
// break;
// case 'camera':
// iconPath = this.baseUrl + '/icon/device/cam.png';
// width = 45;
// height = 45;
// break;
// case '10_flowmeter':
// iconPath = this.baseUrl + '/icon/device/liuliang.png';
// width = 45;
// height = 45;
// break;
// default:
// iconPath = this.baseUrl + '/icon/device/default.png';
// }
const markerItem = {
id: item.id,
iconPath: iconPath,
iconPath: this.baseUrl +'/' + item.mapIcon,
latitude: Number(item.latitude),
longitude: Number(item.longitude),
width: width,