A stylesheet is a configuration file for a renderer that determines the content (what should be displayed) of a map and its style (how the content is displayed). The stylesheet contains the answers to questions like 'what types of roads should be shown on the map' and if so, 'What color should these types of roads be ?' and 'What should be the width of the roads ?'
There are different formats for stylesheets:
|Format||File extensions||Targeted renderer||Note|
||Mapnik||Has to be converted to Mapnik XML.|
||Mapbox GL||Also used by MapLibre.|
||used by several||Used by overpass turbo, JOSM and other projects.|
- 2016-05-13: The end of CartoCSS - Tom MacWright (note that CartoCSS is still maintained and still heavily used by OSM)
- 2012-11-02: CSS For Maps - Tom MacWright
What can we learn from the way non-osm systems define map styles? and what compatibility can we provide?