jeroandris
jeroandris

Reputation: 35

Using Mapkit offline

I would like to use the Mapkit framework in my app offline, so the user does not have to use roaming to download the tiles. I have seen other maps using google maps and have the tiles in the app without having to download them first.

How could this be done? Could the cached tiles in the cached.db saved somewhere in the project so they are there by default? Would I need to create an overlay?

I have seen a number of similar questions, but I am still thinking there might be an answer somewhere out there. Is it really disallowed by Google to use their map images offline?

I know that I could use mapbox, but I am also sure the examples I have seen are not using mapbox.

A thread among many that I have searched: Offline MapKit solution for iOS

Many thanks! Andras

Upvotes: 2

Views: 3116

Answers (2)

iamgautam
iamgautam

Reputation: 90

you can use overlay technique.Just download one geojson file and fetch data from that which contains coordinates.Plot those coordinates by using overlay. This method will show your overlay as map in offline mode.

Upvotes: 0

myell0w
myell0w

Reputation: 2200

This is unfortunately not possible on iOS, there´s neither an API for caching nor is it allowing in the Terms of Usage. As you already stated the only way to allow offline mapping is by using other Map frameworks like Mapbox. MKMapView however does cache a few tiles as long as you loaded them while you had internet connection, you just don't have any control over how many tiles get cached or how long they get cached.

Upvotes: 2

Related Questions