Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone MapKit Framework to cache Google map for offline use

I am planning on a map project for hiking on iPhone.

Since the area for hiking may not be covered by mobile network. Therefore, it is necessary to pre-cache the map (Google) of the area.

1) Can MapKit Framework support caching Google Map on iPhone locally ? 2) Can MapKit Framework support to use offline map during GPS-ing ?

Thanks.

like image 450
SkyEagle888 Avatar asked Sep 25 '10 04:09

SkyEagle888


People also ask

Can you use Google Maps offline on iPhone?

With Google Maps on iPhone, you can save a map to help you navigate when you're not connected to the internet.

Can iPhone map work offline?

You can't use Apple Maps offline, so you need to use a different app for navigation if you don't have a connection. As an alternative, you can use offline navigation apps like HERE WeGo or MAPS.ME. You can also download maps for offline use using Google Maps.


2 Answers

Unfortunately no, you cannot cache the google tiles (at least not in iOS 4.x). However, you can use an MKOverlay to create an overlay that displays and caches tiles from another map source like OpenStreetMap. Apple published an example TileMap overlay with their 2010 WWDC videos.

like image 160
Aaron Avatar answered Sep 21 '22 22:09

Aaron


Video from WWDC10 can be found here at hxxt://developer.apple.com/videos/wwdc/2010/ (sorry, can't post more then 1 link).

And here is a link for WWDC10 examples source (including TileMap): http://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?code=y&source=x&bundleID=20645

You'll need an Apple account to download this 233 Mb ZIP :)

like image 27
WASD42 Avatar answered Sep 21 '22 22:09

WASD42