Another way of designing a map style is to use Mapbox Studio Classic desktop application in combination with OpenMapTiles to create Tilemill2 tile styles for Mapnik renderer. Even though this workflow is still functional, it is recommended to switch to the MapBox Studio.

NOTE: If you need raster tiles, it is highly recommended to use the TileServerGL project, which provides raster tiles rendered on the server side from the vector tiles and the modern GL styles.

Change the Source

Go to Vector tile hosting and get a free key. Then download TileJSON from URL

https://free.tilehosting.com/data/v3.json?key={key}

and save it as a file with .json extension (the extension is necessary for Mapbox Studio Classic). Upload the JSON to the web, e.g. using Gist. Finally change the source of your TM2 style to URL of your TileJSON and save the style.

Mapbox Studio Classic change of the source

Write CartoCSS

Change the CartoCSS selector to match the OpenMapTiles layers. Learn more about the OpenMapTiles vector tile schema to find layers and attributes you need to create your own map.

Check out the video tutorial how to port an existing TM2 style to OpenMapTiles.

Ported Classic Styles

To simplify your effort, we already ported some nice-looking open licensed raster tile styles.

K

OpenMapTiles.org is an open-source project from Klokan Technologies GmbH and OSM community
Share this page on