mapbox / DEPRECATED-mapbox-ios-sdk

REPLACED – use https://www.mapbox.com/ios-sdk instead
https://github.com/mapbox/mapbox-gl-native
Other
323 stars 8 forks source link

How to use Mapbox iOS SDK with OpenStreetMap offline map tiles #635

Open daj opened 9 years ago

daj commented 9 years ago

I'm trying to follow these instructions: http://shiki.me/blog/offline-maps-in-ios-using-openstreetmap-and-route-me/

In summary, I use downloadosmtiles.pl to download the tiles, and then map2sqlite to create the SQLite .mbtiles file from them.

My code used to work fine with the original Route-Me repository, and now I'm trying to update it to the Mapbox fork.

There seem to have been some changes to the expected database format. I had to update map2sqlite to make a few database column and table name changes to fix DB Error messages logged by the Mapbox iOS SDK (https://github.com/daj/map2sqlite/issues/1), but my tiles still aren't appearing yet. I haven't dug into the detail but would appreciate some advice on the best way to use OpenStreetMap map tiles with Mapbox. Am I going in the right direction?

Here's my fork of map2sqlite with the changes I have had to make so far: https://github.com/daj/map2sqlite

Thanks!

iDevelopper commented 8 years ago

I did this perfectly with MOBAC

http://mobac.sourceforge.net/