Opened 10 years ago

Closed 10 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:
Cc:

Description

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 http://www.hentges.net/irclogs/%23navit/2011/January/20110127_navit.log#[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 10 years ago by tegzed

Hello,

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 10 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.