Opened 11 years ago

Closed 6 years ago

#2136 closed defect (fixed)

highway ref hidding bridges

Reported by: Pieren Owned by: mapnik-team@…
Priority: minor Milestone:
Component: mapnik Version:
Keywords: Cc:


We found some examples where a bridge is hidden by the tag ref on a highway. Here: or

I think that having the bridge visible is better than the ref in this case.

Change History (4)

comment:1 Changed 11 years ago by Vid the Kid

Ref shields are drawn at the middle point of a way. Since a bridge is a very short way, Mapnik tries to render a shield on it. If there are no nearby conflicting labels, then there the shield goes. At low zooms, this often completely covers the bridge.

One possible solution would be to add a filter to the ShieldSymbolizer? to exclude the case when there's a bridge=yes or bridge=true tag. One better solution, if possible, would be to add a filter based on the way's length instead. (Really it's all short ways that have this problem, whether they're bridges or not. Long bridges could still use a ref shield.)

I think this should maybe be categorized as an enhancement, since the current behavior isn't really wrong, just a little ugly, and some tweaks to osm.xml might make it better. Anyway, I agree that this enhancement would be a good and useful change.

comment:3 Changed 11 years ago by Ldp

Owner: changed from steve8@… to mapnik-team@…

comment:4 Changed 6 years ago by math1985

Resolution: fixed
Status: newclosed

This issue has been resolved in the meanwhile.

Note: See TracTickets for help on using tickets.