riku
2024-05-06 1534aee0339dee8000cdd26c21797cf3ad391f7a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<template>
  <div id="container"></div>
</template>
 
<script setup>
import { onMounted } from 'vue';
import { createMap } from '@/utils/map/index_old';
onMounted(() => {
  // 高德地图初始化
  createMap('container');
});
</script>
<style>
#container {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: var(--screen-min-height);
  min-width: var(--screen-min-width);
  z-index: 0px;
}
 
/* 去除高德地图的固定版号图标 */
.amap-logo {
  display: none;
  opacity: 0 !important;
}
.amap-copyright {
  display: none;
  opacity: 0 !important;
}
</style>