Skip to content


Subversion checkout URL

You can clone with
Download ZIP
A TileMill/Carto project for OpenStreetMap PostGIS databases
Branch: master

Fixing syntax error

latest commit ca70c8e895
AJ Ashton authored

Open Streets

A TileMill/Carto style for OpenStreetMap PostGIS databases

This style has been designed to work with a PostGIS database created with osm2pgsql. Test databases used the default import style file.

View Demo

You may also be interested in OSM Bright which now supports osm2pgsql and is more actively maintained.


Python >= 2.6 (for setting up styles)

TileMill >= 0.5.x

Postgres/PostGIS installation

Shapefile setup

OSM Extract imported into postgres

Setup (for TileMill)

Download and the styles:

git clone git://

Download the osm shapefiles into the layers sub-directory:

cd open-streets-style/open-streets
mkdir layers
cd layers
cd ../../

Now edit the so the database and shapefiles settings match your setup.

Make sure you can connect with the same set of options on the command line like:

psql osm

Note: host, user, and password are often optional, but on some systems required. It depends on your postgres setup. Just be sure to understand you setup before blindly continuing.

Then run the script which will fixup your shapefile paths and database connection settings in the styles 'mml' file.


Now copy or link the projection subdirectory called 'open-streets' into your TileMill projects directory at:


You can make a symlink like:

ln -s `pwd`/open-streets ~/Documents/MapBox/project/open-streets

Now go start TileMill and you should see the project available.


If your map appears blank then you likely have some error preventing the stylesheet from loading for the first time. Since you loaded the stylesheet through a backdoor symlink TileMill cannot protect you from manual setup errors.

Try viewing an individual tile to get access to an error:

Something went wrong with that request. Please try again.