| | |
| | | <div class="leftBox"> |
| | | <div id="mapContainer" class="mapLeft"></div> |
| | | <div class="colseBtn"> |
| | | <img class="searchBtn" src="@/assets/closeinput1.png" /> |
| | | <img class="searchBtn" @click="close" src="@/assets/closeinput1.png" /> |
| | | </div> |
| | | <div class="listBox"> |
| | | <ul> |
| | |
| | | import WMTSTileGrid from "ol/tilegrid/WMTS"; |
| | | import * as olProj from "ol/proj"; |
| | | import XYZ from "ol/source/XYZ"; |
| | | |
| | | import store from '@/utils/store2' |
| | | let view = new View({ |
| | | center: olProj.fromLonLat([4.606512, 2.621472]), |
| | | zoom: 12, |
| | |
| | | this.tileLayer1.setSource(this.mapList.find((e) => e.id == item).value); |
| | | this.currentIndex1 = index; |
| | | }, |
| | | close(){ |
| | | store.setHistoryShow(false); |
| | | |
| | | } |
| | | // changeRightMap(item, index) { |
| | | // this.tileLayer2.setSource(this.mapList.find((e) => e.id == item).value); |
| | | // this.currentIndex2 = index; |