手机浏览器上的特殊效果,如拨号、跳转地图app等

一.点击超链接拨号:

<a href="tel:18688888888">拨号</a>   
<a href="sms:18688888888">发短信</a>




二.URI跳转地图导航

http://www.jianshu.com/p/bff790afffad


②、IOS web跳转谷歌地图:

comgooglemaps://?center=40.765819,-73.975866&zoom=14&views=traffic

具体用法可参考底部的谷歌地图的IOS版的链接。



③、android web跳转谷歌地图:

Google Maps	
geo:latitude,longitude
geo:latitude,longitude?z=zoom
geo:0,0?q=my+street+address
geo:0,0?q=business+near+city
Opens the Maps application to the given location or query. The Geo URI scheme (not fully supported) is currently under development.
The z field specifies the zoom level. A zoom level of 1 shows the whole Earth, centered at the given lat,lng. 
A zoom level of 2 shows a quarter of the Earth, and so on. The highest zoom level is 23. A larger zoom level will be clamped to 23.




具体实例:

<a href="geo:0,0?z=8&q=34.56,123.456(金科路)&z=17">安卓版谷歌地图可定位</a>

①、IOS web跳转百度地图应用:

<a href="baidumap://map/marker?location=40.047669,116.313082&title=我的位置&content=百度奎科大厦&src=yourCompanyName|yourAppName">地图标点</a>



④、android web跳转百度地图:

//网页应用调起Android百度地图方式举例
<a href="bdapp://map/marker?location=40.047669,116.313082&title=我的位置&content=百度奎科大厦&src=
yourCompanyName|yourAppName">地图标点</a>





安卓官方文档:

https://developer.android.com/guide/appendix/g-app-intents.html

谷歌地图IOS版官方文档:

https://developers.google.com/maps/documentation/ios-sdk/urlscheme






  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值