From 7d9ca523951e73cc0e6ccc36e2879d70c305039c Mon Sep 17 00:00:00 2001 From: lukeyan <1727408482@qq.com> Date: Tue, 22 Aug 2023 16:39:38 +0800 Subject: [PATCH 1/2] =?UTF-8?q?2.5d=E5=9C=B0=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/static/map.html | 8 +++++++- src/utils/request.js | 4 ++-- src/views/compositeIndex/index.vue | 3 +-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/public/static/map.html b/public/static/map.html index 1611a34..665b607 100644 --- a/public/static/map.html +++ b/public/static/map.html @@ -11,6 +11,11 @@ height: 100vh; /* border: 0.1px solid #495e70; */ } + + /* 去除百度地图logo */ + .anchorBL { + display: none + } @@ -23,7 +28,8 @@ var point = new BMapGL.Point(121.619401, 30.046348); // 创建点坐标 map.centerAndZoom(point, 15); // 初始化地图,设置中心点坐标和地图级别 map.enableScrollWheelZoom(true); - map.setMapType(BMAP_SATELLITE_MAP); + map.setHeading(64.5); //设置地图旋转角度 + map.setTilt(73); //设置地图的倾斜角度 // 禁止地图旋转和倾斜可以通过配置项进行设置 var map = new BMapGL.Map("allmap", { enableRotate: false, diff --git a/src/utils/request.js b/src/utils/request.js index 56dd381..bbddc92 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -7,8 +7,8 @@ const request = axios.create({ //baseURL: 'http://172.18.113.50:8080/zhapi', //baseURL: 'http://172.18.113.13:8080/zhapi', // 孙强 //baseURL: 'http://192.168.0.188:8888/zhapi', - baseURL: 'http://121.41.91.94:12002/zhapi', - //baseURL: `http://${window.location.host}/zhapi`, + //baseURL: 'http://121.41.91.94:12002/zhapi', + baseURL: `http://${window.location.host}/zhapi`, timeout: 50000, headers: { 'content-type': 'application/json' }, }) diff --git a/src/views/compositeIndex/index.vue b/src/views/compositeIndex/index.vue index 2dddda8..54405ae 100644 --- a/src/views/compositeIndex/index.vue +++ b/src/views/compositeIndex/index.vue @@ -85,7 +85,6 @@ export default { }, methods: { change_map(val) { - console.log("22222", val); if (val == "2") { console.log("789"); this.$router.push({ @@ -104,7 +103,7 @@ export default { position: relative; // border: 0.1px solid #495e70; .iframeMap { - margin-top: 1vh; + margin-top: 0.5vh; z-index: 0; height: 90vh; } -- 2.36.3 From 9e5f1ac296c22a10cb6501ab3133e24f1e0ce084 Mon Sep 17 00:00:00 2001 From: lukeyan <1727408482@qq.com> Date: Wed, 23 Aug 2023 08:58:43 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/static/map.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/static/map.html b/public/static/map.html index 665b607..e1c44ee 100644 --- a/public/static/map.html +++ b/public/static/map.html @@ -28,8 +28,9 @@ var point = new BMapGL.Point(121.619401, 30.046348); // 创建点坐标 map.centerAndZoom(point, 15); // 初始化地图,设置中心点坐标和地图级别 map.enableScrollWheelZoom(true); - map.setHeading(64.5); //设置地图旋转角度 - map.setTilt(73); //设置地图的倾斜角度 + map.setMapType(BMAP_SATELLITE_MAP); + // map.setHeading(64.5); + // map.setTilt(73); // 禁止地图旋转和倾斜可以通过配置项进行设置 var map = new BMapGL.Map("allmap", { enableRotate: false, -- 2.36.3