ios wx.openLocation有时候能打开地图,有时候打不开
ios wx.openLocation有时候能打开地图,有时候打不开
附上相关代码
wx.getLocation({
type: ‘gcj02’,
success: function (res) {
wx.openLocation({
latitude: Number(’’ + latitude + ‘’),
longitude: Number(’’ + longitude + ‘’),
scale: 16,
name: ‘’ + locationName + ‘’,
success: function (res){
},
fail: function (res){
}
})
},
fail: function (res){
}
})