Skip to content

Commit

Permalink
Move control over road rendering order to SQL
Browse files Browse the repository at this point in the history
Currently, rendering order of road rendering within one layer is handled
by the z_order column, which comes from osm2pgsql. As such, we have
little control over road rendering without reloading the database.
This PR moves control over the rendering order to the SQL query.

This adds complexity to the SQL queries, but increases customizability,
and simplifies the roads.mms code.

This solves the following issues:

* gravitystorm#462 (Move rendering order road types from osm2pgsql to our SQL queries)
* gravitystorm#163 (Railways are now drawn above roads)
* gravitystorm#167 (Tramway layering issues)
* gravitystorm#168 (Paths are now drawn below link roads)
* Trac 2024 (Service roads are now rendered below link roads)
* Trac 3649 (Service roads are now rendered below race tracks)
* Pedestrian and living streets are now consistently ordered
* Footways are now always displayed under service ways
  • Loading branch information
matthijsmelissen committed Aug 1, 2014
1 parent 5b411de commit 1102359
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 321 deletions.
Loading

0 comments on commit 1102359

Please sign in to comment.