|
|
@@ -139,6 +139,7 @@
|
|
|
</bml-marker-clusterer>
|
|
|
<!-- 地图中心坐标 -->
|
|
|
<bm-marker
|
|
|
+ v-if="touchmoveTrue"
|
|
|
:position="{ lng: currentCenter.lng, lat: currentCenter.lat }"
|
|
|
:icon="{
|
|
|
// url: 'http://developer.baidu.com/map/jsdemo/img/location.gif',
|
|
|
@@ -856,6 +857,7 @@ export default {
|
|
|
lng: '',
|
|
|
lat: '',
|
|
|
}, //地图中心位置
|
|
|
+ touchmoveTrue: false, //移动后在线式中心图标
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
@@ -870,6 +872,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
activated() {
|
|
|
+ this.touchmoveTrue = false;
|
|
|
this.listData = [];
|
|
|
this.baiduMapKey = new Date().getTime();
|
|
|
this.closeFn();
|
|
|
@@ -1125,6 +1128,7 @@ export default {
|
|
|
this.geocoder = new TMap.service.Geocoder();
|
|
|
},
|
|
|
dragend(e) {
|
|
|
+ this.touchmoveTrue = true;
|
|
|
// const currentCenter = this.mapk.getCenter();
|
|
|
// console.log(`当前中心点纬度: ${currentCenter.lat}, 经度: ${currentCenter.lng}`);
|
|
|
// this.getMapposition(e, '2', this.$route.query.tabVal);
|