Search code examples
iphonecloudmade

How to use Offline Cloudmade Maps in an iPhone App


I’ve looked through the posts on the Cloudmade site here and I get some of it, but not all. I've posted the question below, but haven't had the help I need, so I thought I'd ask the question here.

I can see that I need to:

  • download the tiles for the required area to my Mac (but can’t see how to do this)
  • convert these to a sqlite database using the map2sqlite utility, changing the code to output the tiles to a table called “ZCACHE”, not “tiles”
  • Copy the DB to the Application Bundle
  • insert some code to copy this DB on first run, from the Application Bundle to the Documents Directory
  • Somehow get App to use this DB and not an online one – I can’t see how that’s done.

Any help would be warmly welcomed,

Chris.


Solution

  • please check this tutorial, it can help - http://www.gisnotes.com/wordpress/category/sqlite3/.