1.采用小程序提供的原生api
map.openMapApp({
latitude: 32.03804, //目标地址的纬度
longitude: 118.730517, //目标地址的经度
destination: '江苏省南京市鼓楼区集庆门大街xxxxxxxxx', //目标地址详情(将显示在弹出框顶部)
success() {
console.log('success')
},
fail() {
console.log('fail')
},
complete() {
console.log('complete')
}
})
2.效果