[OSM-talk] Getting highway refs onto the mapnik slippy map layer

Tom Chance tom at acrewoods.net
Thu Oct 4 11:58:32 BST 2007


Hello,

This has been annoying me for some time now: "The motorway refs are really
nice, so it will be handy when they show up on other kinds of roads. I'd
suggest that trunk road refs show up from level 12, primary from 13 or 14
and the rest somewhere after that." -
http://trac.openstreetmap.org/ticket/388

Looking at osm.xml I assume it just needs some shield pngs in the matching
colours and a few new lines like so:

    <Rule>
      <Filter>[highway] = 'trunk' and [length] = 2</Filter>
      <MaxScaleDenominator>500000</MaxScaleDenominator>
      <MinScaleDenominator>100</MinScaleDenominator>
      <ShieldSymbolizer name="ref" face_name="DejaVu Sans Bold" size="11"
fill="#809bc0" placement="line" file="/home/steve/symbols/trunk_shield.png"
type="png" width="24" height="17" min_distance="100"/>
    </Rule>

Perhaps with different scale denominators (haven't read up on the full spec
yet). If I make the PNGs and the rules for all the shields can somebody
check & commit the new lines to SVN? It would make me much happier looking
around south London to see British A & B road numbers on there!

Kind regards,
Tom





More information about the talk mailing list