修改
This commit is contained in:
@@ -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']),
|
||||
}]
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user