|
|
@@ -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',
|
|
|
@@ -875,6 +876,7 @@ export default {
|
|
|
}, //地图中心位置
|
|
|
isCompetingStores: true,
|
|
|
postType: '',
|
|
|
+ touchmoveTrue: false, //移动后在线式中心图标
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
@@ -890,6 +892,7 @@ export default {
|
|
|
},
|
|
|
activated() {
|
|
|
this.postType = localStorage.getItem('postType');
|
|
|
+ this.touchmoveTrue = false;
|
|
|
this.listData = [];
|
|
|
this.baiduMapKey = new Date().getTime();
|
|
|
this.closeFn();
|
|
|
@@ -1145,6 +1148,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);
|