北京经济技术开发区经开区虚拟城市项目-【前端】-移动端Web
lixuliang
2024-03-15 626003e9beb59cf711f59f3b48087300070f121e
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: {},
@@ -39,9 +39,10 @@
  mounted() {
    store.setNavigatorShow(false);
    store.setMapToolShow(false);
    // window.mapapi.getView().setCenter(ol.proj.fromLonLat([4.606512, 2.621472]));
    window.mapapi.getView().setCenter(ol.proj.fromLonLat([116.505348, 39.795592]));
    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; */