From 246f34358c6f57284acedc7e0ce1443c1a916726 Mon Sep 17 00:00:00 2001 From: "978184212@qq.com" <978184212@qq.com> Date: Thu, 30 Jul 2026 17:02:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/maps/index.vue | 39 ++++++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/pages/maps/index.vue b/pages/maps/index.vue index 77352c4..f569ccb 100644 --- a/pages/maps/index.vue +++ b/pages/maps/index.vue @@ -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,