Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Here's how I ended up solving the problem.</p> <p>Since Tilemill doesn't natively read <code>.osm/.o5m/.pbf</code> files I used Osmosis to convert a <code>.osm</code> file into <code>.shp</code> files.</p> <p>I then created a new project in Tilemill and added the particular <code>.shp</code> files I wanted as layers to the new project. It takes a little bit of tinkering to get the map to look like you want it to but it's very similar to css and pretty easy to pick up as you go.</p> <p>Once I had the map looking the way I wanted it I exported it as a <code>.mbtiles</code> file. This takes a long time to make and the files can be very large depending on how detailed the tiles are. I did one map of Ireland with zoom levels between 7-14 inclusive and I did one map of just Dublin city with zoom levels of 11-17 inclusive. Even though the map of just the city of Dublin had much less tiles, they were both ~200MB in size. </p> <p>I then found this tutorial online which explains how to store the <code>.mbtiles</code> file in you application and how to read it: <a href="http://martinsikora.com/creating-mbtiles-db-for-ios-mapbox-from-hi-res-map-image">http://martinsikora.com/creating-mbtiles-db-for-ios-mapbox-from-hi-res-map-image</a></p> <p>Here are a few other links that I found useful:</p> <p><a href="http://www.kindle-maps.com/blog/using-tilemill-with-openstreetmap-data.html">http://www.kindle-maps.com/blog/using-tilemill-with-openstreetmap-data.html</a></p> <p><a href="http://mapbox.com/developers/mbtiles/">http://mapbox.com/developers/mbtiles/</a></p> <p><a href="http://mapbox.com/mapbox-ios-sdk/api/">http://mapbox.com/mapbox-ios-sdk/api/</a></p> <p><a href="http://mapbox.com/developers/api/#static_api">http://mapbox.com/developers/api/#static_api</a></p> <p><a href="http://support.mapbox.com/discussions">http://support.mapbox.com/discussions</a></p> <p>I hope this is useful to someone</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload