mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-11 14:17:24 +08:00
优化分享功能
This commit is contained in:
parent
2a8d0522f6
commit
32cbe81fd3
@ -4,7 +4,8 @@
|
||||
selectMapPosInfo: {
|
||||
mapX:'',
|
||||
mapY:'',
|
||||
mapData:{}
|
||||
mapData:{},
|
||||
addMap:{}
|
||||
}
|
||||
},
|
||||
_initMethod: function () {
|
||||
@ -28,6 +29,10 @@
|
||||
if(_data.lat){
|
||||
_lat = _data.lat;
|
||||
}
|
||||
|
||||
if($that.selectMapPosInfo.addMap){
|
||||
$that.selectMapPosInfo.addMap.destroy();
|
||||
}
|
||||
|
||||
let addMap = new TMap.Map(_data.element, {
|
||||
center: new TMap.LatLng(_lat, _lng),
|
||||
@ -60,6 +65,8 @@
|
||||
])
|
||||
});
|
||||
//为地图注册click事件获取鼠标点击出的经纬度坐标
|
||||
|
||||
$that.selectMapPosInfo.addMap = addMap;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user