iPhone HTML链接到maps.google.com,它在Mobile Safari中打开页面,而不是Maps App [英] iPhone HTML link to maps.google.com that opens page in Mobile Safari, not Maps App

查看:137
本文介绍了iPhone HTML链接到maps.google.com,它在Mobile Safari中打开页面,而不是Maps App的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在iPhone上,maps.google.com表单的链接由每个iPhone上安装的Google地图应用打开。 (请参阅: Apple URL方案参考) p>

maps.google.com的移动网站支持比本地地图应用更多的功能(如转接层)。



<有没有一种方法来制定一个HTML链接,导致Safari浏览器打开浏览器中的地图链接,而不是启动本地地图应用程序?



这里有一个示例链接在地图应用程序中打开,我宁愿通过移动Safari打开:



http://maps.google.com/maps?q=boston&lci=transit_comp

解决方案

使用https而不是http。



https://maps.google.com/maps?q=boston&lci=transit_comp



编辑

您也可以自行解析域名,然后使用IP地址。 b

http://173.194.34.165/maps?q=boston& ; lci = transit_comp

On the iPhone, links of the form maps.google.com are opened by the google maps app, which is installed on every iPhone. (see: Apple URL scheme reference)

The mobile site of maps.google.com supports more functionality than the native maps app (like the transit layer).

Is there a way to formulate an html link that would cause safari to open the maps link in the browser instead of launching the native maps app?

Here's an example link that opens in the Maps App that I'd rather have opened by mobile Safari:

http://maps.google.com/maps?q=boston&lci=transit_comp

解决方案

use https instead of http.

https://maps.google.com/maps?q=boston&lci=transit_comp

EDIT:

You could also resolve the domain name yourself then use the IP address.

http://173.194.34.165/maps?q=boston&lci=transit_comp

这篇关于iPhone HTML链接到maps.google.com,它在Mobile Safari中打开页面,而不是Maps App的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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