Custom renderer adds options to control aspects of contour lines and walking routes

520 views
Skip to first unread message

A Thompson

unread,
Sep 4, 2017, 9:28:37 PM9/4/17
to Osmand
Building on the embryonic version I posted some time ago, I hope others find this as useful as I do!

<!--
Renderer for walking and walk planning, dependent on Touring View
(A. Thompson August 2017)

DESCRIPTION: A "walk" way is anything nicer than a road: i.e. footway, path, bridleway, cycleway, track. This renderer adds new options to the bottom of the "Configure Map" menu under "Other map attributes":
* Hide restricted walks: If set, then walks with the access tag set to "no" or "private" are completely hidden (rather than being shown with a very slightly different line style). This applies even to walks that would otherwise be highlighted.

* Highlight walks: If set, then as you zoom out walks are highlighted in bold black. Otherwise they become hard to see or an not rendered at all. Tracks remain dashed, other walks are solid.

* Contour 50/100m markers: When set, 100m contours are twice normal width, and from zoom level 16 50m contours are 1.5 times normal. When unset , this standard behaviour is suppressed and all contours are shown the same width: best for general visualisation of the terrain and when closely-spaced contours are giving a shading effect that highlights steep slopes.

* Contour width: select from a range of sizes greater than standard.

INSTALLATION:
Place this file in the "rendering" subfolder of your "osmand" folder. You could rename it "yourName.render.xml" 
The next time Osmand is fully restarted (after force stop, or swiped away from the recent apps list), then this renderer will appear among the standard ones in the choices of "Map style" in the "Map rendering" section of the "Configure map" menu. Once selected, the extra menu options listed above will appear.

KNOWN ISSUES (nothing serious (and not my fault?)):
- When a new contour width is selected, the new value is not immediately shown in the "Configure map" menu overview, even though it takes effect on the map.
- For some reason, as you zoom out, at the last level before the renderer loses control to the overview map, access restrictions aren't detected. So if "Hide restricted walks" is on, then walks that are hidden at all closer zoom levels make a brief appearance.

TESTING:
To find, for example, something tagged with "access=private" in the OpenStreetMap data, http://overpass-turbo.eu can be used by typing "access=private" (without quotes) into the wizard.
-->

walking.render.xml

P Wat

unread,
Sep 7, 2017, 2:09:22 PM9/7/17
to Osmand
Sounds interesting - Anyone else tried it?
Paul W

A Thompson

unread,
Jan 6, 2018, 9:54:52 PM1/6/18
to Osmand
No reported problems so far. Here's a pictorial guide:

After you put the file in OsmAnd's "rendering" subfolder, open the "Configure map" menu like this:

 or from the main menu: 


then choose "Map style" and pick the new renderer:


Only while this renderer is selected, you will find new options at the bottom of the "Configure map" menu:



The new renderer just takes the standard "Touring View" and adds some extra adjustments. The setting above gives standard Touring View (from left to right we are zooming out on the same spot):



If we turn all of the new adjustments on at once (they can be chosen independently) thus -


then as you zoom out from the same spot:


We are seeing (and these can be chosen independently):
  • Walking routes tagged as "no" or "private" are not shown
  • Walking routes are highlighted as far as possible as you zoom out, whatever their type (footway, path, bridleway, cycleway, track)
  • Contour 50/100m highlights are turned off - this can be nicer in mountainous areas when you have:
  • Contour widths increased
Here's an animated GIF switching between the two graphics:


But note that you could use this for any single or combination of extra features

If you select another renderer then the extra options disappear, and if you delete the file then OsmAnd is as if you'd never tried it. 

I'm not and OsmAnd deveoper: I think it's one of the unsung wonders of OsmAnd that users can customise like this. There is nothing comparable!

A Thompson

unread,
Oct 11, 2018, 8:58:38 PM10/11/18
to Osmand
Here's a very minor update. The "Hide restricted walks" feature now responds to foot = no/private as well as access = no/private. In my area, mappers are only recently refining access restrictions like this.

NB. Since I started work on this little project, OsmAnd has added some control over contour line width and density when you tap on the "Contour Lines... display zoom level" option. It must depend on screen resolution (and your eyesight!) but for me I need them much thicker and this renderer still does the trick.
walking.render.xml

P Wat

unread,
Oct 14, 2018, 3:55:59 PM10/14/18
to Osmand
Thanks - I'd be interested to know if you take this further.
Paul W.

A Thompson

unread,
Nov 10, 2019, 2:18:14 PM11/10/19
to Osmand
Here's a minor improvement to my touring-view-dependent renderer for highlighting walking routes. (Illustrated earlier in the current thread https://groups.google.com/forum/#! topic/osmand/WyGJS0Dekrk ).

In the UK, most walking trails are footways so it was helpful to keep highlighted tracks (i.e. possible to negotiate in a motorised vehicle) as dashed lines, because they are often merely for access to a farm. But in some parts of the world, most walking trails are tracks, and the dashed lines make the highlighting less effective, e.g.
:
dashed.jpg

So now I have added an extra control that gives the option of making tracks solid when they are highlighted along with the other kinds of walking ways:


menu.jpg



solid.jpg


I hope someone finds this useful! Best wishes.



walking.render.xml

A Thompson

unread,
May 12, 2020, 9:23:57 PM5/12/20
to OsmAnd
Another minor improvement: The "Hide restricted walks" option no longer hides walks tagged as "access=no" or "access=private" if they are also tagged with "foot=yes".
walking.render.xml

Dmitry Prodchenko

unread,
May 15, 2020, 3:18:05 AM5/15/20
to OsmAnd
Hello, A Thompson! Using current beta version 3.7 you can create OsmAnd profile with your rendering file and all needed settings and share it like custom profile, it will allow import profile and just switch to it to use rendering style or other settings. 

Hannus Paulsen

unread,
May 15, 2020, 12:44:13 PM5/15/20
to OsmAnd
Hello A Thompson
One tip
You can also restart Osmand in the app.
Settings -> OsmAnd settings -> Display language -> Apply -> OK
The language does not have to be changed.

Majka

unread,
Jun 12, 2020, 11:59:12 AM6/12/20
to OsmAnd

danilo baggini

unread,
Jun 12, 2020, 4:46:20 PM6/12/20
to Osmand Chat
Please post a new time the link of the renderer file
Tanks
Danilo

--
You received this message because you are subscribed to the Google Groups "OsmAnd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osmand+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osmand/926aa64a-e641-4554-b1cd-2f478d5d5c20o%40googlegroups.com.

A Thompson

unread,
Jun 12, 2020, 11:39:46 PM6/12/20
to OsmAnd
Hi! This email list is also accessible as a google group, which makes it easy to search for everything ever posted:
https://groups.google.com/forum/#!forum/osmand

Here's a direct link to my posting containing the latest download:
https://groups.google.com/d/msg/osmand/WyGJS0Dekrk/Z04AwaA1AQAJ

Personally, I like to minimise email so I'm not subscribed - I just look at the google group when I'm in the mood.

All the best! Let me know if there are any problems. 

It's exciting how version 3.7 has introduced the import/export of "Custom Packages" that can include rendering files and much more. I'm really looking forward to the "OsmAnd market" for sharing these easily - I'd been hoping for a central repository of custom rendering files one day, but this is looking much more powerful, and completely novel.
Reply all
Reply to author
Forward
0 new messages