From 290aa4c2bcd83c584e0b10cab76131c069bf64b7 Mon Sep 17 00:00:00 2001 From: 少年 <1392120328@qq.com> Date: 星期三, 13 三月 2024 10:44:25 +0800 Subject: [PATCH] youhua --- src/components/poplayer/history2.vue | 19 ++++++------------- 1 files changed, 6 insertions(+), 13 deletions(-) diff --git a/src/components/poplayer/history2.vue b/src/components/poplayer/history2.vue index e134ba1..03a62e0 100644 --- a/src/components/poplayer/history2.vue +++ b/src/components/poplayer/history2.vue @@ -39,7 +39,8 @@ mounted() { store.setNavigatorShow(false); store.setMapToolShow(false); - window.mapapi.getView().setCenter([4.606512, 2.621472]); + // window.mapapi.getView().setCenter(ol.proj.fromLonLat([4.606512, 2.621472])); + window.mapapi.getView().setCenter(ol.proj.fromLonLat([116.505348, 39.795592])); addHistoryLayer(this.currentValue); if (_GLOBAL.GPSMarker) { window.mapapi.removeLayer(_GLOBAL.GPSMarker); @@ -53,7 +54,7 @@ close() { store.setHistoryShow(false); window.mapapi.removeLayer(this.$global.historyLayer); - window.mapapi.getView().setCenter([116.505348, 39.795592]); + window.mapapi.getView().setCenter(ol.proj.fromLonLat([116.505348, 39.795592])); store.setNavigatorShow(true); store.setMapToolShow(true); }, @@ -68,7 +69,7 @@ } .searchBtn { - width: 51px; + width: 0.4rem; /* height: 40px; */ } @@ -77,7 +78,6 @@ right: 10px; bottom: 18px; width: 48px; - height: 594px; background: #ffffff; box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.21); border-radius: 13px; @@ -88,10 +88,9 @@ } .listBox li { font-weight: bold; - font-size: 15px; + font-size: 0.12rem; + line-height: 0.25rem; color: #1c222f; - height: 28px; - line-height: 28px; border-bottom: 1px solid #e5e5e5; text-align: center; } @@ -104,12 +103,6 @@ color: #127dff; } -.mapLeft { - float: left; - position: absolute; - width: 100vw; - height: 100vh; -} .active { /* background-color: #4590d7; */ -- Gitblit v1.9.3