Closed dch0ph closed 6 months ago
Related issues: #951, #4401.
Thanks for linking related issues. It looks like shield placement is a general nightmare.
I'm experimenting with "AND junction IS NULL", which seems a simple way to remove some of worst placements.
I'm closing this issue, effectively folding into #951.
"AND junction IS NULL" would be a logical addition, since you don't want shields on junctions, but in practice it has made little observable difference in experiments. Mapnik just loves putting shields on junction flares.
Expected behavior
Road name shields should be in "boring" bits of the map.
Actual behavior
Shields can be placed on any road segment, This seems to have the effect of increased likelihood of shields appearing in busy parts of the map with multiple short segments.
Screenshots with links illustrating the problem
From area
Shields placed here, obscuring detail
It's unclear to me why mapnik fails to place a shield on the boring stretch between roundabouts (here at Z14)
A solution to the primary issue would be to exclude ways with
junction=roundabout
andjunction=circular
. It doesn't make sense to allow shields here.You could make a similar argument to exclude
bridge=*
. But in contrast to junctions, bridges can be long, and so at higher zoom levels shields might improve information quality rather than obscure.I don't understand shield placement well enough to encourage shield placement in long stretches.