Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

最近做一个导航的功能,想从web端携带目的地的经纬度等参数跳到百度app,
location.href="http://api.map.baidu.com/marker?location="+latitude+","+longitude+"&title=我的位置&content="+address+"&output=html";
这样写的话跳到的是百度地图web端,怎么样才可以跳到百度地图APP,求解,谢谢。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
928 views
Welcome To Ask or Share your Answers For Others

1 Answer

文档:https://lbsyun.baidu.com/index.php?title=uri/api/ios

//网页应用调起iOS百度地图方式举例
<a href="baidumap://map/marker?location=40.047669,116.313082&title=我的位置&content=百度奎科大厦&src=ios.baidu.openAPIdemo">地图标点</a>

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...