Here's a custom renderer for viewing the railway network

102 views
Skip to first unread message

A Thompson

unread,
Apr 27, 2019, 9:42:15 PM4/27/19
to Osmand
If you're in an unknown place, it' can be useful to understand the rail network around you. OsmAnd can show online tiles from OpenRailwayMap (Configure Map > Map Source > Install more...) but we already have the data in our offline map. I noticed that the inbuilt "Topo" renderer does a good job of showing railways at different zoom levels, but they get obscured by roads, e.g. :

Screenshot_2019-04-28-01-37-33.png


So I wrote a little renderer (attached) that extends Topo, adding two more entries to its "Hide" menu:

Screenshot_2019-04-28-01-38-03.pngScreenshot_2019-04-28-01-38-16.png


The first hides roads, the second hides railways that aren't for everyday transport (preserved, abandoned, disused, construction, miniature). [Can anyone think of a better name than "Non-service rail" for the latter?] This gives a clear view:

Screenshot_2019-04-28-01-38-29.png


Even better, if you combine this with a custom POI search, Search > Categories > Custom search (at the bottom) > Transportation > Railway station + Railway stop (you can save this with a name for future use), you get this:

Screenshot_2019-04-28-01-39-04.png


To use, put the rail.render.xml file into the the "rendering" subfolder of your OsmAnd installation, completely restart OsmAnd, and pick "rail" in Configure map > Map style. The extra hiding  options are only available while "rail" is selected, and deleting the .xml file removes any trace.

Just sharing something I find useful - I hope someone else likes it!
rail.render.xml
Reply all
Reply to author
Forward
0 new messages