Menu

Rendering

Kempelen

Rendering engine is CeyX, which is not maintained anymore, so I moved the source code into this repo (with no history).

This page will contain notes about how render(myMap) rendering is set up.

MapCSS files

There are several mapcss files, that are merged with include directives. Some of them are always loaded, while others depend on the user's selected map style.

base style

  • style.mapcss - this is the CeyX original style, I tried to patch it as little as possible to be able to update with new versions

main files

  • shops.mapcss: main file for the POIs and Shops style
  • housenumbers.mapcss: main file for the Housenumbers style
  • wheelchair.mapcss: main file for the wheelchair or accessibility style

include files

  • highways.mapcss: road network styles, loaded by all styles
  • poi-icons.mapcss: icons for the POs (not loaded by Housenumbers style)
  • poi-labels.mapcss: defines what labels the POIs should use (most stuff that have no name will display it's type, e..g value of "amenity" key)
  • printer.css: overwrites some of "style.mapcss" styles for high contrast printing

Zoom levels are used for detail setting

Since MapCSS rules are based on zoom level, which is the user's selected "detail level".

  • Zoom level 13: Bare mode
  • Zoom level 14: Medium detail
  • Zoom level 16: Full detail

In general, Full detail mode will render all POIs with icon and name. You can use this for on-site detail surveys, to check what else needs to be mapped. I recommend using OSM Focus Reborn to easily query extra attributes of the nodes. The Medium detail mode is not particularly useful, it suppresses labels, so somewhat bigger area can be printed. The Bare mode is useful for printing overview maps, it mainly prints the road network with street names and some landuse/landcover areas.