andreynovikov / trekarta

Simple, responsive map for your trek. You decide how to journey today, not the application!
https://trekarta.info
GNU General Public License v3.0
174 stars 25 forks source link

Area stacking order #126

Open hungerburg opened 4 years ago

hungerburg commented 4 years ago

I noticed at times, that areas within another area are not shown; Somebody mapped a scree within a scrub; But they could have done just the opposite, put a scrub within a scree.

Tracking down, where the stacking level gets assigned I found https://github.com/andreynovikov/trekarta/blob/19e2741342e8483958f0977aa5f744911dd722be/app/src/main/java/org/oscim/theme/XmlThemeBuilder.java#L680

OSM Carto does quite some effort around that, see https://wiki.openstreetmap.org/wiki/Standard_tile_layer#Rendering_order

The issue is minor; Probably even belongs to VTM instead?

andreynovikov commented 4 years ago

Unfortunately this is indeed VTM limitation - the order is always defined by theme and nothing can be done with that. I did my best to select the best order but it is always a compromise...