This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

How to convert data from osm to mbtiles and add a good style ?

0

Hi,

In order to have roads of a city in mbtiles format, to do a mobile app, I extracted data in shp from the OSM website. I successfully imported it in tilemill and I know how to export it in mbtiles format.

When I import a shape file, in tilemill, all areas are in green. It may be a basic question but I don't know how to create a good style for roads I downloaded from OSM. Can you say how to do?

Is there a good and simple tutorial to do this process?

Thanks!

asked 16 Apr '15, 11:12

Dougui's gravatar image

Dougui
6111
accept rate: 0%


2 Answers:

2

IMHO https://www.mapbox.com/tilemill/ contains all the necessary information on styling with carto css and so on. Most users tend to read OSM data from a database so there may be some additional hiccups along the way when using shape files.

answered 16 Apr '15, 11:19

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701
accept rate: 18%

edited 16 Apr '15, 11:21

It seems your right. I have to read. I see the power when you want to custom maps but it's complicated for what I need. If you have a simpler solution, let me know.

(16 Apr '15, 12:53) Dougui

1

I use Maperitive to generate mbtiles for a custom Fire Service map - very simple to use. Not using shp files though.

answered 17 Apr '15, 10:38

RJCorazza's gravatar image

RJCorazza
10113
accept rate: 0%

Source code available on GitHub .