从小程序拉起地图APP导航,正确显示起点终点的文字描述要怎么传参?
小程序代码:
mapNavigation: function() {
// console.log(this.data.);
t.get("store/map", {
id: this.data.storeid,
merchid: this.data.merchid
}, function(t) {
/**
获取店铺经纬度和地址
**/
const latitude = Number(t.store.lat)
const longitude = Number(t.store.lng)
const address = t.store.address
// console.log(address);
wx.openLocation({
latitude,
longitude,
scale: 18,
name:address,
})
})
}
通过wx.openLocation拉起手机的地图APP进行导航,但是跳转到APP中起点终点的文字描述如下图,没有做出正确的文字描述,是缺少了什么参数导致无法显示正确的起点终点文字描述吗?
查阅API文档,暂时没看到相关的参数设置。wx.openLocation文档