NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

  1. I want to generate maps in TileMill which look identical to the format produced by openstreetmap.org with the Standard setting. Where can I find the relevant config files?
  2. Is it sufficient to replace the following files base.mss, labels.mss, palette.mss, project.mml and roads.mss, in my project folder to get the style I need?

I'm running TileMill on Ubuntu 12.04. I downloaded the OSM data for Spain and imported it into a Postgre database. All of this is running perfectly, my question is just about how to get the style used on the website.

asked 07 Sep '12, 07:42

Ger%20Kelly's gravatar image

Ger Kelly
11112
accept rate: 0%

edited 20 Nov '13, 23:47

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554

3

I've resurrected and re-answered this question because it may still come up in response to searches. The original answer was correct at the time but has been overtaken by events.

(20 Nov '13, 22:08) SomeoneElse ♦

TileMill uses CartoCSS as a styling language, but the actual OSM.org Standard style is written in Mapnik XML and thus can't be used in TileMill directly. It is technically be possible to create a TileMill project that closely approximates the standard style, but as far as I know no one has created such a thing.

If you want tiles that look exactly like or very similar to those on OSM.org, it may be easiest to use something like generate_tiles.py with the standard Mapnik style. Otherwise you should see if playing around with the colours and style of the OSM Bright template (which it sounds like you already have set up?) to get close to what you want.

permanent link

answered 07 Sep '12, 08:30

ajashton's gravatar image

ajashton
17056
accept rate: 33%

OpenStreetMap uses a CartoCSS-based stylesheet since August 2013: openstreetmap-carto. So you can load that directly into TileMill directly. You can then edit it as you wish, export a .xml stylesheet from TileMill, and use that with your main renderer.

If the machine that you use for rendering isn't the same as the one that you have TileMill installed you may need to check for renderd errors in its logfile (missing fonts, file paths not qualified, etc.) after transferring the stylesheet - files exported by TileMill may refer to components of the original TileMill project, and in turn (at least with OSMBright, but not with openstreetmap-carto) there may be references to TileMill's download cache.

permanent link
This answer is marked "community wiki".

answered 20 Nov '13, 22:06

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866
accept rate: 16%

edited 20 Nov '13, 23:46

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554

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:

×341
×36
×22
×14

question asked: 07 Sep '12, 07:42

question was seen: 9,094 times

last updated: 20 Nov '13, 23:47

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum