如何从移动网站打开iOS 6地图? [英] How to open iOS 6 maps from a mobile website?

查看:84
本文介绍了如何从移动网站打开iOS 6地图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个移动网站,我有一个链接可以在我的网站中打开Goog​​le地图应用。现在,随着ios6的新版本,谷歌地图的本地版本不再,现在链接打开到基于Safari浏览器的谷歌地图。我宁愿在本地Apple地图应用程序中打开它。



感谢您的帮助!

>您可以使用 maps.apple.com 来代替以前的Google域名 maps.google.com 。这将与运行5.x及更低版本的旧设备保持兼容。



它看起来像这样:

  http:// maps。 apple.com/maps?q=cupertino 

大部分参数相同,但请参阅Apple docs了解更多详情:



苹果网址方案参考:地图链接


I have a mobile website that I've had a link to open Google maps app from within my website. Now however with the new version of ios6, the native version of google maps is no more and now the link opens to a safari based google maps. I'd rather have this open in a native Apple maps app. How can I do this?

Thanks for all help!

解决方案

Instead of using the previous Google domain maps.google.com you use maps.apple.com. This will remain compatible with older devices running 5.x and below.

It looks like this:

http://maps.apple.com/maps?q=cupertino

Most of the parameters are the same, but see the Apple docs for more details:

Apple URL Scheme Reference: Map Links

这篇关于如何从移动网站打开iOS 6地图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆