Opened 12 years ago

Closed 12 years ago

#752 closed enhancement/feature request (fixed)

toggle layers on and off directly from the GUI

Reported by: sanderd17 Owned by: KaZeR
Priority: minor Milestone: want patch / contribution
Component: core Version: git master
Severity: Keywords:


If different layers could be toggled from inside the GUI, a user could e.g. select if he wants to see natural elements (like water, forest ...) or traffic signs (traffic lights, stop signs ...) or labels while he is navigating, without editing the navit.xml

This could be done by making a layout for each set of layers, but the number of layouts would grow exponentially compared to the number of layers, so that's not a good idea.

If you don't get my explanation, see the[20110127%2016:03:19 IRC logs] (due to techical reasons, there is a bracket missing at the end of the link, just add a ']' to the end)

Change History (2)

comment:1 Changed 12 years ago by tegzed


Good idea! I just committed this functionality to svn (r4055). Please test it and close the ticket if it works correctly. Usage is the following:

<osd enabled="yes" type="button" x="0"  y="-175" command="toggle_layer(&quot;streets&quot;)" src="gui_display_48_48.png"  />

comment:2 Changed 12 years ago by mineque

  • Resolution set to fixed
  • Status changed from new to closed

tested with example and works, closing

Note: See TracTickets for help on using tickets.