This commit is contained in:
A1300399510
2023-07-27 10:44:08 +08:00
parent b35cb8069f
commit 920e1a337c
5 changed files with 27 additions and 13 deletions

View File

@@ -7,7 +7,7 @@
</div>
<div id="container">
<div class="location-bj flexcenter" @click="showPop" v-if="!show">
<div class="location-site flexacenter">
<div class="location-site flexacenter" v-if="props['name']">
<img class="tracingPoint" src="@/assets/img/publicImage/u1704.png" />
<div class="location-name">{{ props['name'] }}</div>
<img class="location-arrows" src="@/assets/img/publicImage/u353.svg" />
@@ -28,8 +28,9 @@ const props = defineProps({
let key = ref("MVNBZ-PEFWI-O4OGT-5ADVJ-7QAYJ-NBFY4")
console.log("props.latlng", props.latlng['latitude'], props.latlng['longitude']);
const initMap = () => {
let center = new TMap.LatLng(props.latlng['longitude'], props.latlng['latitude']);
let center = new TMap.LatLng(props.latlng['latitude'], props.latlng['longitude']);
let map = new TMap.Map("container", {
zoom: 15,
disableDefaultUI: true, //禁止所有控件
@@ -44,7 +45,7 @@ const initMap = () => {
id: "marker-layer",
map: map,
geometries: [{
"position": new TMap.LatLng(props.latlng['longitude'], props.latlng['latitude']),
"position": new TMap.LatLng(props.latlng['latitude'], props.latlng['longitude']),
}]
});
}