From fa1eb4023c7fd6ffd7cf8aeffea96a37aab438b0 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Mon, 19 May 2025 13:15:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=9C=B0=E5=9B=BE=E7=86=9F?= =?UTF-8?q?=E6=82=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../static/js/synthesisQuery/digitalSignage.js | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/main/resources/static/js/synthesisQuery/digitalSignage.js b/src/main/resources/static/js/synthesisQuery/digitalSignage.js index 06a9a29..492a5fe 100644 --- a/src/main/resources/static/js/synthesisQuery/digitalSignage.js +++ b/src/main/resources/static/js/synthesisQuery/digitalSignage.js @@ -143,7 +143,17 @@ function initMap() { map = new BMapGL.Map("map-box"); // 以第一个点为中心初始化地图 map.centerAndZoom(new BMapGL.Point(intLng, intLat), 15); - map.enableScrollWheelZoom(true); + + map.setTilt(73); //设置地图的倾斜角度 + + map.enableScrollWheelZoom(true); // 启用滚轮缩放 + // map.setTilt(60); // 设置地图倾斜角度 + + // map.setDisplayOptions({ + // building: true, // 显示3D建筑物 + // }); + var navigationControl = new BMapGL.NavigationControl3D(); + map.addControl(navigationControl); // 每次初始化的时候清除所有标点以及线 map.clearOverlays(); @@ -687,8 +697,8 @@ function addMapLine() { let lineColor = ""; let lineStyle = ""; if ( - startPoint.towerProgress === 7 && - endPoint.towerProgress === 7 + startPoint.towerProgress === 6 && + endPoint.towerProgress === 6 ) { lineColor = "#5ad8a6"; lineStyle = "solid";