Australia/Archive/Aussie Mapnik Style Changes
< Australia | Archive(Redirected from Aussie Mapnik Style Changes)
Jump to navigation
Jump to search
This page describes a historic artifact in the history of OpenStreetMap. It does not reflect the current situation, but instead documents the historical concepts, issues, or ideas.
Brain dump of things that we've tweaked or need to be worked out how to tweak.
Things done
- railway=platform now renders
- state borders render properly
- all towns and villages are shown at a z7, but very fine print so as not to clutter, font size increases as you go to z8-z10 etc
- amenity=bbq now renders
- tourism=picnic_site now renders
- amenity=bench now renders
- display state_code at z3
- highway shields -- rendering highway relations, see Australian Tagging Guidelines on how to do this
- Add '4wd only' to the end of tracks tagged 4wd_only=yes
Things left to figure out
- only use place nodes if they are available, if place node doesn't exist only then show area/boundary names.
- surface=unpaved as dotted/dashed instead of solid lines
- different colours for roads (maybe Melway or UBD/Gregories styles)? --Lakeyboy 12:24, 5 August 2009 (UTC)
- Is there a UBD/St Directory that doesn't look antiquated? Delta foxtrot2 01:32, 9 August 2009 (UTC)
- public transport routes (relations) being rendered? --Lakeyboy 12:24, 5 August 2009 (UTC)
- This would be best as an overlay, not rendered on the base map image Delta foxtrot2 01:32, 9 August 2009 (UTC)
- railway=disused isn't rendered, but railway crossing are, which just looks confusing without seeing the track too.
- add renderings for amenity=drinking_water - this is really handy for cyclists / pedestrians Rhubarb 16:26, 19 August 2009 (UTC)
- add renderings for amenity=waste_basket - this would be great to render, especially in large parks Rhubarb 16:26, 19 August 2009 (UTC)
Misc information
Mapnik uses an xml/css like style sheet to produce rendered images, the OSM.org copy is stored in OSM's SVN repositry and you can view it here. Unlike the website which has zoom levels 0-18, mapnik requires something closer to pixels per metre.
Here is a table of how zoom levels equate with mapnik values.
Zoom Level | Minimum Distance | Maximum Distance |
---|---|---|
z0 | 313774583 | 627549167 |
z1 | 156887291 | 313774583 |
z2 | 78443645 | 156887291 |
z3 | 39221822 | 78443645 |
z4 | 19610911 | 39221822 |
z5 | 9805455 | 19610911 |
z6 | 4902727 | 9805455 |
z7 | 2451363 | 4902727 |
z8 | 1225681 | 2451363 |
z9 | 612840 | 1225681 |
z10 | 306420 | 612840 |
z11 | 153210 | 306420 |
z12 | 76605 | 153210 |
z13 | 38302 | 76605 |
z14 | 19151 | 38302 |
z15 | 9575 | 19151 |
z16 | 4787 | 9575 |
z17 | 2393 | 4787 |
z18 | 1196 | 2393 |