How do load OpenStreetMap data into TileMill? How can I get the style to match Mapnik, could I use the Mapnik style directly. If you can, where do I get the stylesheet from?

If you can't where can I get a style that exactly matches or is as close as possible to the Mapnik style used on web OSM map.

asked 18 Mar '14, 14:46

deco2208's gravatar image

deco2208
26111214
accept rate: 0%


You do not download OSM data into TileMill. You load OSM data into a PostGIS database (which you install beforehand) using the osm2pgsql utility (which you install beforehand), and then you can use that database as a source for your map layers.

The style that powers openstreetmap.org is available on GitHub; be sure to follow the README carefully.

Note that this style cannot be modified in TileMill without some tricks, as it involves more files than fit into TileMill's tabbed edit pane.

permanent link

answered 18 Mar '14, 14:55

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
71.3k846451113
accept rate: 24%

1

Just to add a little bit to Frederik's answer, "using TileMill to work with data in a PostGIS database" is one of the steps in the TileMill "crash course". It's probably worth following that if you're interested in using TileMill with OSM data and the OSM "standard" map style.

Don't let "this style cannot be modified in TileMill without some tricks" put you off, as the main trick is to use an external editor to edit the relevant files, and TileMill is quite good at detecting external changes to files.

(22 Mar '14, 11:31) SomeoneElse ♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×552
×53
×36

question asked: 18 Mar '14, 14:46

question was seen: 2,880 times

last updated: 22 Mar '14, 11:31

powered by OSQA