|
@@ -102,7 +102,7 @@ const data = ref({
|
|
|
region: 0,
|
|
|
})
|
|
|
const loading = ref(true);
|
|
|
-const zoom = ref(12);
|
|
|
+const zoom = ref(14);
|
|
|
const center = ref([121.59996, 31.197646]);
|
|
|
let map: any = null;
|
|
|
|
|
@@ -131,10 +131,14 @@ async function loadInfo() {
|
|
|
} else {
|
|
|
center.value = [118.850895, 28.982787];
|
|
|
}
|
|
|
- map?.add(new AMap.Marker({
|
|
|
- position: center.value as [number, number],
|
|
|
- icon: IconMap,
|
|
|
- }));
|
|
|
+
|
|
|
+ setTimeout(() => {
|
|
|
+ map?.add(new AMap.Marker({
|
|
|
+ position: center.value as [number, number],
|
|
|
+ icon: IconMap,
|
|
|
+ anchor: 'bottom-center'
|
|
|
+ }));
|
|
|
+ }, 1000);
|
|
|
|
|
|
const menu = await VillageApi.getVillageMenuList(id);
|
|
|
|