月球大数据地理空间分析展示平台-【前端】-月球2期前端
Surpriseplus
2023-09-05 8b8f88d7d8d713a1355d9849f467e3a2dc0c22fe
src/views/Map/olMap.vue
@@ -2,10 +2,16 @@
  <div
    id="mapView"
    class="mapView"
  ></div>
  >
    <div class="coordinate">经度:{{store.state.olLon}} 纬度:{{store.state.olLat  }} 级别:{{store.state.olZoom  }} </div>
  </div>
</template>
<script lang="ts" setup>
import { useStore } from "vuex"; // 引入useStore 方法
const store = useStore(); // 该方法用于返回store 实例
import olMap from "@/assets/js/Map/olMap";
import {
  ref,
@@ -27,5 +33,18 @@
  margin: 0;
  padding: 0;
  position: absolute;
  .coordinate {
    bottom: 1%;
    left: 1%;
    padding: 10px;
    background: rgba(7, 8, 14, 0.8);
    z-index: 30;
    box-shadow: inset 0px 2px 10px 2px rgba(38, 47, 71, 1);
    position: absolute;
    font-size: 16px;
    font-family: Source Han Sans CN;
    font-weight: 400;
    color: #ffffff;
  }
}
</style>