osmeditor4android icon indicating copy to clipboard operation
osmeditor4android copied to clipboard

Improve object layering when rendering data

Open simonpoole opened this issue 3 years ago • 0 comments

We current render data in this order (bottom to top)

  • multi-polygons and boundaries (ignoring layer tags)
  • closed ways (taking layer tag in to account)
  • ways (taking layer tag in to account)
  • nodes
  • turn restrictions

While just a rough approximation of correct layering this works quite well, however there are cases which can come out sub-optimal. For example landuse that is modeled with a closed ways that has buildings on top. There are multiple ways to attack this for example we could calculate area size and render smaller areas on top.

simonpoole avatar Jan 29 '22 14:01 simonpoole