| | |
| | | <template> |
| | | <div class="historyBox"> |
| | | <div class="colseBtn"> |
| | | <img class="searchBtn" @click="close" src="@/assets/closeinput1.png" /> |
| | | <div class="closeWrapper"> |
| | | <img class="colseBtn" @click="close" src="@/assets/closeinput1.png" /> |
| | | </div> |
| | | <div class="listBox"> |
| | | <ul> |
| | |
| | | <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: {}, |
| | |
| | | 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); |
| | | } |
| | |
| | | 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); |
| | | }, |
| | |
| | | }; |
| | | </script> |
| | | <style scoped> |
| | | .colseBtn { |
| | | .closeWrapper { |
| | | position: absolute; |
| | | top: 20px; |
| | | right: 9px; |
| | | } |
| | | |
| | | .searchBtn { |
| | | .colseBtn { |
| | | width: 0.4rem; |
| | | /* height: 40px; */ |
| | | } |
| | |
| | | color: #127dff; |
| | | } |
| | | |
| | | |
| | | |
| | | .listBox .active { |
| | | /* background-color: #4590d7; */ |
| | | color: #127dff; |
| | | } |
| | | </style> |