北京经济技术开发区经开区虚拟城市项目-【前端】-移动端Web
少年
2024-03-06 a18adf9f3b30a5ff51c163059e4af9ffcd2af536
src/components/poplayer/history2.vue
@@ -34,8 +34,13 @@
    };
  },
  mounted() {
    store.setNavigatorShow(false);
    store.setMapToolShow(false);
    window.mapapi.getView().setCenter([4.606512, 2.621472]);
    addHistoryLayer(this.currentValue);
    if (_GLOBAL.GPSMarker) {
      window.mapapi.removeLayer(_GLOBAL.GPSMarker);
    }
  },
  methods: {
    changeLeftMap(item) {
@@ -44,6 +49,10 @@
    },
    close() {
      store.setHistoryShow(false);
      window.mapapi.removeLayer(this.$global.historyLayer);
      window.mapapi.getView().setCenter([116.505348, 39.795592]);
      store.setNavigatorShow(true);
      store.setMapToolShow(true);
    },
  },
};
@@ -51,7 +60,7 @@
<style scoped>
.colseBtn {
  position: absolute;
  top: 5vh;
  top: 3vh;
  right: 20px;
}
@@ -63,7 +72,7 @@
.listBox {
  position: absolute;
  right: 20px;
  bottom: 10px;
  bottom: 0.5rem;
  background-color: #373737;
}