1、h5调用高德、百度地图App
//高德地图 百度地图 使用a标签跳转
<a href="https://uri.amap.com/marker?position=经度,纬度&name=所在的位置名称">高德地图</a>
<a href="http://api.map.baidu.com/marker?location=纬度,经度&title=所在位置名称&content=所在位置的简介(可选)&output=html">百度地图</a>
2、实践项目中使用
<van-col span="16" class="right_1" @click="amap(item.lng,item.lat,item.address)">
<a :href="url"/>
</van-col>
methods:{
amap(lng, lat ,address) {
var poslng = lng
var poslat = lat
this.address = address
console.log(this.address);
this.url = "androidamap://navi?sourceApplication=xlwx&poiname=" + poslng + ',' + poslat + '&name=' + this.address
},
}