| | |
| | | |
| | | <script setup> |
| | | import { onMounted } from 'vue'; |
| | | |
| | | // window._AMapSecurityConfig = { |
| | | // securityJsCode: '「您申请的安全密钥」' |
| | | // } |
| | | |
| | | import { createMap } from '@/utils/map/index_old'; |
| | | onMounted(() => { |
| | | // const marker = new AMap.Marker({ |
| | | // position: [116.39, 39.9] //位置 |
| | | // }); |
| | | // map.add(marker); //添加到地图 |
| | | // 高德地图初始化 |
| | | createMap('container'); |
| | | }); |
| | | </script> |
| | | <style> |
| | |
| | | display: none; |
| | | opacity: 0 !important; |
| | | } |
| | | |
| | | .amap-marker-label { |
| | | font-size: 13px; |
| | | text-align: center; |
| | | color: white; |
| | | background-color: transparent; |
| | | text-shadow: black 2px 2px 2px; |
| | | border-radius: 2px; |
| | | border: 0px; |
| | | padding: 4px; |
| | | } |
| | | </style> |