From ce3080e8b1b299975d0fa99c45b5adc6bda0f88f Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Tue, 13 May 2025 15:05:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../js/synthesisQuery/digitalSignage.js | 88 +++---------------- 1 file changed, 12 insertions(+), 76 deletions(-) diff --git a/src/main/resources/static/js/synthesisQuery/digitalSignage.js b/src/main/resources/static/js/synthesisQuery/digitalSignage.js index d1fe8e3..8592124 100644 --- a/src/main/resources/static/js/synthesisQuery/digitalSignage.js +++ b/src/main/resources/static/js/synthesisQuery/digitalSignage.js @@ -65,72 +65,6 @@ const legendData = [ // 地图配置项 const config = { - points: [ - { - lng: 116.254, // 向西偏移 - lat: 39.965, // 向北偏移 - title: "点1", - type: 1, - isCompleted: true, // 是否完成 - isCrossing: false, // 是否跨越 - }, - { - lng: 116.263, // 保持适当距离 - lat: 39.972, - title: "点2", - type: 1, - isCompleted: true, // 是否完成 - isCrossing: false, // 是否跨越 - }, - { - lng: 116.275, // 平滑过渡 - lat: 39.958, - title: "点3", - type: 1, - isCompleted: true, // 是否完成 - isCrossing: false, // 是否跨越 - }, - { - lng: 116.285, // 继续向东 - lat: 39.945, - title: "点4", - type: 2, - isCompleted: true, // 是否完成 - isCrossing: false, // 是否跨越 - }, - { - lng: 116.298, // 向南偏移 - lat: 39.935, - title: "点5", - type: 2, - isCompleted: false, // 是否完成 - isCrossing: false, // 是否跨越 - }, - { - lng: 116.305, // 保持连贯性 - lat: 39.925, - title: "点6", - type: 2, - isCompleted: false, // 是否完成 - isCrossing: false, // 是否跨越 - }, - { - lng: 116.315, // 最终点 - lat: 39.915, - title: "点7", - type: 3, - isCompleted: false, // 是否完成 - isCrossing: true, // 是否跨越 - }, - { - lng: 116.325, // 最远点 - lat: 39.905, - title: "点8", - type: 9, - isCompleted: false, // 是否完成 - isCrossing: true, // 是否跨越 - }, - ], polyline: { strokeWeight: 1, // 线条宽度 strokeOpacity: 0.9, // 透明度 @@ -267,12 +201,13 @@ function initMap() { ]; if (isMap) { - map.setMapType(BMAP_EARTH_MAP); // 地球模式 - map.setDisplayOptions({ - poiText: false, // 隐藏POI文字 - poiIcon: false, // 隐藏POI图标 - building: false, // 隐藏建筑物 - }); + // map.setMapType(BMAP_EARTH_MAP); // 地球模式 + map.setMapType(BMAP_SATELLITE_MAP); // 地球模式 + // map.setDisplayOptions({ + // poiText: false, // 隐藏POI文字 + // poiIcon: false, // 隐藏POI图标 + // building: false, // 隐藏建筑物 + // }); } else { map.setMapType(BMAP_NORMAL_MAP); // 普通模式 @@ -874,6 +809,8 @@ function getOrgTreeData() { getScrollData(nodeId); getLegendData(nodeId); getLocationInfo(nodeId); + } else { + initMap(); } } }, @@ -998,20 +935,19 @@ function getScrollData(id) { 垂直距离: ${item.verticalDistance || "/"} 安全裕度: ${item.safetyMargin || "/"} `; - } else if(item.spanType === "跨公路"){ + } else if (item.spanType === "跨公路") { describeHtml += ` 垂直净距:${item.verticalClearDistance || "/"} m 杆塔间距: ${item.towerSpacing || "/"} m 公路宽度: ${item.highwayWidth || "/"} m `; - }else if(item.spanType === "跨铁路"){ + } else if (item.spanType === "跨铁路") { describeHtml += ` 垂直净距:${item.verticalClearDistance || "/"} m 杆塔间距: ${item.towerSpacing || "/"} m 交叉角度: ${item.intersectionAngle || "/"} ° `; - }else{ - + } else { } // 单行数据