|
@@ -484,8 +484,11 @@
|
484
|
484
|
}"
|
485
|
485
|
:show="baiduMapInfo.markerInfo.show"
|
486
|
486
|
@close="closeBmInfoWindow()"
|
|
487
|
+ @open="openBmInfoWindow()"
|
487
|
488
|
>
|
488
|
|
- <div>地址: {{ baiduMapInfo.markerInfo.address }}</div>
|
|
489
|
+ <div v-if="baiduMapInfo.markerInfo.address">
|
|
490
|
+ 地址: {{ baiduMapInfo.markerInfo.address }}
|
|
491
|
+ </div>
|
489
|
492
|
<div>经度:{{ baiduMapInfo.markerInfo.lng }}</div>
|
490
|
493
|
<div>维度:{{ baiduMapInfo.markerInfo.lat }}</div>
|
491
|
494
|
</bm-info-window>
|
|
@@ -1111,12 +1114,6 @@ export default {
|
1111
|
1114
|
lng: this.baiduMapInfo.positions[0].lng,
|
1112
|
1115
|
lat: this.baiduMapInfo.positions[0].lat
|
1113
|
1116
|
};
|
1114
|
|
- this.baiduMapInfo.markerInfo = {
|
1115
|
|
- show: false,
|
1116
|
|
- address: "",
|
1117
|
|
- lng: this.baiduMapInfo.center.lng,
|
1118
|
|
- lat: this.baiduMapInfo.center.lat
|
1119
|
|
- };
|
1120
|
1117
|
} else {
|
1121
|
1118
|
this.baiduMapInfo.center = "郑州市";
|
1122
|
1119
|
}
|
|
@@ -1149,10 +1146,20 @@ export default {
|
1149
|
1146
|
lng: item.lng,
|
1150
|
1147
|
lat: item.lat
|
1151
|
1148
|
};
|
|
1149
|
+ } else {
|
|
1150
|
+ this.baiduMapInfo.markerInfo = {
|
|
1151
|
+ show: true,
|
|
1152
|
+ address: "",
|
|
1153
|
+ lng: item.lng,
|
|
1154
|
+ lat: item.lat
|
|
1155
|
+ };
|
1152
|
1156
|
}
|
1153
|
1157
|
});
|
1154
|
1158
|
}
|
1155
|
1159
|
},
|
|
1160
|
+ openBmInfoWindow() {
|
|
1161
|
+ this.baiduMapInfo.markerInfo.show = true;
|
|
1162
|
+ },
|
1156
|
1163
|
closeBmInfoWindow() {
|
1157
|
1164
|
this.baiduMapInfo.markerInfo.show = false;
|
1158
|
1165
|
},
|