[iOS SDK] Creating my own offline map with Mapbox (.mbtiles format)

In order to create a new .mbtiles map for Mapbox’s iOS SDK, we need to use Mobile Atlas Creator (MOBAC).

1.- Open the MOBAC tool, Select Atlas > New Atlas.

2.- In the Map Source menu, select “OpenStreetMap MapQuest”

3.- Find the place (in our case, the Royal Alcazar of Seville). Draw a Square that covers the whole zone of interest.

alcazar1.PNG

4.- Mark the “Recreate/adjust map tiles (CPU intensive)” checkbox. Select desired zoom levels (in our case, 15,16,17 and 18 will be enough).

5.- On the Atlas Content menu, select “Add Selection”. Name it whatever you want, in my case it will be “Alcazar1”.

alcazar2.PNG

6.- In MOBAC tool, select Atlas > Create Atlas. It will take a few seconds/minutes, and click “Open atlas folder” when done.

alcazar3.PNG

7.- There you have your .mbtiles map. Now that it is created, you can proceed to this Mapbox Integration tutorial to configure Mapbox in your iOS App.

Let me know if it helps!

Advertisements

One thought on “[iOS SDK] Creating my own offline map with Mapbox (.mbtiles format)

  1. Hi, you say on your point 7) to follow your previous tutorial “mapbox integretation with mbtiles file”. The probleme is the function “RMMBTilesSource” and RMMapView are replace by “MGL…”. I’m using swift and I try to adapt you code by changing this function but no issue… Do you have some tips for me ? Thanks. Raf

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s