Hi guys,

I've followed the instructions on switch2osm but couldn't find any informations about how to use a different style. In the past we used openmaptiles and the style klokantech-basic but I haven't found a way to use it on our own tile server (I don't think it is possible at all, but maybe I'm wrong...).

Is there any tutorial on how to switch to a different style and eventually a website referencing some compatibles styles?

From what I understood, the openstreeetmap-carto style is not juste a style, some of its files are called during the setting-up process described on switch2osm (a .lua and .style file, etc.) so I'm also wondering how I'm supposed to use style like osm-bright for example (even if I'm looking for a much more simple one like klokantech-basic)?

Thanks a lot!

asked 09 Jul, 15:54

voharunado's gravatar image

accept rate: 0%

The Klokantech map styles require fundamentally different software (and a fundamentally different approach to creating map tiles) to work compared to the OSM Carto style that switch2osm (and the OSM website) uses. If you want to use a Klokantech style you'll need to rely on information from them.

(09 Jul, 16:49) SomeoneElse ♦

Thanks for that info! Do you have any tutorial to use another style and eventualy a place where I could find some? Thanks!

(09 Jul, 17:07) voharunado

A github search will find a number of projects with an mml file in them. Many of those will be Carto map styles. Not all will work with the same database though.

(10 Jul, 10:13) SomeoneElse ♦

I've found the kind of style I was looking for, compatible with osm-bright, I'll used that instead. Thanks for your help!

(10 Jul, 10:30) voharunado

There isn't a public repository where you can pick a style and install it. There are some open source styles for Mapnik and a standard osm2pgsql database load around, notably (apart from openstreetmap-carto) https://github.com/mapbox/osm-bright, https://github.com/der-stefan/OpenTopoMap, and https://github.com/giggls/openstreetmap-carto-de - but depending on which version of openstreetmap-carto you set up the database for, they might require small changes to the styles (or the database tables) - see also How to specify multiple style file with osm2pgsql query for the travails of someone trying to run various styles off the same database schema!

If you want to use the Klokantech styles you need to install their backend rendering toolchain which is also open source, but different from what is discussed in switch2osm.

permanent link

answered 09 Jul, 18:52

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
accept rate: 24%

edited 09 Jul, 18:54

Thanks Frederik! What I don't understand is the difference between osm-carto and osm-bright for example. Aren't they both styles for the tile server? I can use only one of them right? My installation is new and still in dev, so I can start again from sratch with osm-bright and the blossom style based on it? If I choose to use only this style, do I still need osm-carto? I don't understood this part of your answer...

By following the install instructions of osm-bright and converting the style with carto I should be able to use blossom? Or is there a part I didn't understood?


(10 Jul, 09:49) voharunado

Thing is, you have to load the data into PostGIS and there are many ways of doing that. You will find some "Toner Lite" styles on GitHub for example that are made for a database structure like the one generated by the importer "imposm", and they will not work with an import performed by osm2pgsql. Even two imports with osm2pgsql need not be compatible; one could for example use the hstore extension and the other not, or one could have used lua tag transforms to convert a column into integers and the other not. If both styles are for an osm2pgsql import then they will at least agree on which tables there are, and if they expect the columns to be subtly different then it should be possible to modify the styles with relative ease, or write database views that make the database look right for every style.

(10 Jul, 09:59) Frederik Ramm ♦

Ok I think I got it (correct me if I'm wrong please): if I start a new installation following osm-bright instructions to populate my dabatase, I won't need osm-carto and while I use only osm-bright compatible style it should work.

(10 Jul, 10:12) voharunado

Yes, osm-carto and osm-bright are different projects and you can run osm-bright without osm-carto.

(10 Jul, 10:14) Frederik Ramm ♦

Great thanks a lot!

(10 Jul, 10:28) voharunado
Your answer
toggle preview

Follow this question

By Email:

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



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:


question asked: 09 Jul, 15:54

question was seen: 80 times

last updated: 10 Jul, 10:30

powered by OSQA