From e3c2da34f27e3f65b5885846dab478f4af20ffe6 Mon Sep 17 00:00:00 2001 From: lixuliang <lixuliang_hd@126.com> Date: 星期五, 15 三月 2024 09:50:14 +0800 Subject: [PATCH] console --- src/components/poplayer/history2.vue | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/poplayer/history2.vue b/src/components/poplayer/history2.vue index 31b66f0..4b6fcc3 100644 --- a/src/components/poplayer/history2.vue +++ b/src/components/poplayer/history2.vue @@ -23,7 +23,7 @@ <script> import _GLOBAL from "@/assets/GLOBAL"; import store from "@/utils/store2"; -import { addHistoryLayer } from "@/utils/tool"; +import { addHistoryLayer, addHistoryLW } from "@/utils/tool"; export default { name: "historyBox", components: {}, @@ -42,6 +42,7 @@ 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); + addHistoryLW(); if (_GLOBAL.GPSMarker) { window.mapapi.removeLayer(_GLOBAL.GPSMarker); } @@ -54,7 +55,10 @@ close() { store.setHistoryShow(false); window.mapapi.removeLayer(this.$global.historyLayer); - window.mapapi.getView().setCenter(ol.proj.fromLonLat([116.505348, 39.795592])); + window.mapapi.removeLayer(this.$global.historyLW); + window.mapapi + .getView() + .setCenter(ol.proj.fromLonLat([116.505348, 39.795592])); store.setNavigatorShow(true); store.setMapToolShow(true); }, @@ -102,8 +106,6 @@ /* background-color: #00e1ff; */ color: #127dff; } - - .listBox .active { /* background-color: #4590d7; */ -- Gitblit v1.9.3