最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Show google maps on mobile website - Stack Overflow

programmeradmin0浏览0评论

Is it possible to add google maps on a site designed specifically for the iPhone? I have never integrated maps in my websites before, so this question really goes more because of my inexperience. Using basic html and javascript at the moment.

Is it possible to add google maps on a site designed specifically for the iPhone? I have never integrated maps in my websites before, so this question really goes more because of my inexperience. Using basic html and javascript at the moment.

Share Improve this question asked Mar 10, 2010 at 7:01 GatesReignGatesReign 8261 gold badge9 silver badges24 bronze badges
Add a comment  | 

3 Answers 3

Reset to default 19

The Google Maps API V3 is specifically designed to work efficiently on mobile devices. There are some great tutorials here and here.

Any link to a Google Maps URL will automatically open in the Maps application, which may be more useful than simply embedding a map view in the website itself.

For example, a link to http://maps.google.com/maps?q=cupertino will automatically open the Maps application and run a search for "cupertino".

I think, if you only need a google map with some simple function. The simplest way is use the MapKit.Framework, it's a part of iphone OS. You can find the document here.

If you need to load your own web site, you need to use UIWebView. you can find the document here(http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIWebView_Class/Reference/Reference.html).

I think these two ways can help you solve your problem. And sorry about the link, because I'm not allowed to post more than one hyperlink.

发布评论

评论列表(0)

  1. 暂无评论