从 HTML 页面链接到 iPhone 地图应用程序 [英] Link to iPhone map App from HTML page
本文介绍了从 HTML 页面链接到 iPhone 地图应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法从 html 页面链接到 iPhone 地图应用中的路线?
Is there a way to link to directions in the iPhone map app from a html page?
我们在 iPhone 应用程序中添加了一个插件,该插件将链接到我们网站上的移动页面 - 我们想添加一个路线链接,到目前为止,谷歌搜索还没有显示.
We're placing an add in an iPhone app which will link to a mobile page on our website - we'd like to add a directions link, thus far google searches have been unrevealing.
推荐答案
这是一个创建链接的 javascript 函数:
function mapLink(myAddress) {
return 'http://maps.google.com/maps?q='+escape(myAddress);
}
这在 iPhone 上效果很好.
This works great on the iPhone.
这篇关于从 HTML 页面链接到 iPhone 地图应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文