4.6. Internal GUI

The Internal GUI is designed to be used on touch screen devices, but also work very well on other devices such as netbooks and laptops. It is under continual development and as such features are constantly being added and improved upon. If you think that a particular feature is missing or poorly implemented, get in touch with us (see contacts) and consider filing a feature request (see Reporting bugs).

The menu used by the Internal GUI is fully configurable using an HTML-like syntax inside the <gui> element of navit.xml; see Customizing the menu below for details and ready-made configurations. The configuration options of the internal GUI itself (such as keyboard, menu_on_map_click or the icon sizes) are described on the display options page.

4.6.1. Using the Internal GUI

4.6.1.1. Initial Start-up

N810-OSD-Home.png When Navit is first started using the Internal GUI one should see (depending on the skin you have selected to use) something similar to the image to the right. The layout of the internal GUI is controlled by the OSD tags located in the navit.xml file. These tags should be located within the first 100 lines of the file. For information on how to modify the appearance of the OSD layout please reference this link. OSD

4.6.1.2. Basics and breadcrumbs

The Internal GUI should be mostly self-explanatory (that’s the idea, at least - if it is not, please file a bug). It basically consists of different screens which show icons that can be clicked / touched, lists (such as search results) and input fields. For text input, a virtual keyboard is available. Of course, a regular hardware keyboard can be used if available.

On all screens of the Internal GUI, there is a breadcrumb trail at the top of the screen, which shows the current position inside the screen hierarchy of the Internal GUI. The breadcrumbs are clickable, to return to an earlier screen.

4.6.1.3. View in Browser

Clicking a map item that corresponds to an OSM node, way or relation opens a context menu containing a View in Browser item. Navit then builds the matching openstreetmap.org browse URL and invokes the external command navit-browser.sh '<url>'.

To make this work, place a shell script named navit-browser.sh in your PATH that opens the URL passed to it in a browser, for example:

#!/bin/bash
xdg-open "$@"

4.6.1.4. Operation with keyboard or rotary encoder

While the Internal GUI is mainly designed to be used with a mouse or touch screen, it can also be operated using a (hardware) keyboard or even a rotary encoder (which only offers “forward”, “backward” and “enter”).

The GUI elements can be navigated using arrow keys, and activated using Enter, as usual. Additionally, all GUI elements can also be reached using only PgUp/PgDown - this allows the use of a rotary encoder, if its actions are mapped to these two keys.

When using a rotary encoder (or cursor keys), it may be useful to set option hide_impossible_next_keys to hide irrelevant keys when searching. See the advanced options for details.

Support for rotary encoders was added in December 2015, and hide_impossible_next_keys in February 2017.

4.6.3. Customizing the menu

The menu used by the Internal GUI is defined by an HTML-like syntax inside the <gui type="internal"> element in navit.xml. This makes the menu highly configurable. Below are alternative configurations contributed by users.

4.6.3.1. Installing alternative configurations

If you want to try one of the configurations shown below, simply copy the code for the configuration (including the leading and trailing ]]>) and paste it over the existing configuration within the <gui> element in navit.xml.

4.6.3.2. Alternative configurations

4.6.3.2.1. Netbook Configuration 1

This configuration is optimized for the small screens of netbooks:

../../_images/Screenshot-Navit-NetbookMenu.png
  • Map Point is in the main menu. It also appears in the “Go To” menu.

  • Actions has been renamed “Go To”, and given a different icon.

  • “Exit” (old “Quit”) has moved to the Main Menu.

  • Tools and the About entry have been removed.

<![CDATA[
<html>
        <img cond='flags&amp;2' src='gui_map' onclick='back_to_map()'><text>Show Map</text></img>
        <!-- Main Menu -->
        <a name='Main Menu'><text>Main menu</text>

            <img cond='click_coord_geo' src='gui_map' onclick='position(click_coord_geo,_("Map Point"),8|16|32|64|256|1024)'>Map Point</img>
            <a href='#Actions'><img src='cursor'>Go To</img></a>
            <a href='#Settings'><img src='gui_settings'><text>Settings</text></img></a>
            <a href='#Route'><img src='gui_log'><text>Route Info</text></img></a>
            <img src='gui_quit' onclick='quit()'><text>Exit</text></img>
            <img cond='navit.route.route_status&amp;52' src='gui_stop' onclick='abort_navigation()'><text>Stop Navigation</text></img>

        </a>

        <!-- Actions -->
        <a name='Actions'><text>Go To</text>

            <img src='gui_bookmark' onclick='bookmarks()'><text>Bookmarks</text></img>
            <img cond='click_coord_geo' src='gui_map' onclick='position(click_coord_geo,_("Map Point"),8|16|32|64|256|1024)'><script>write(click_coord_geo)</script></img>
            <img cond='position_coord_geo' src='gui_vehicle' onclick='position(position_coord_geo,_("Vehicle Position"),8|32|64|128|256)'><script>write(position_coord_geo)</script></img>
            <img src='gui_town' onclick='town()'><text>Town</text></img>

        </a>

        <!-- Settings -->
        <a name='Settings'><text>Settings</text>
            <a href='#Settings Display'><img src='gui_display'><text>Display</text></img></a>
            <img src='gui_maps' onclick='setting_maps()'><text>Maps</text></img>
            <img src='gui_vehicle' onclick='setting_vehicle()'><text>Vehicle</text></img>
            <img src='gui_rules' onclick='setting_rules()'><text>Rules</text></img>
        </a>

        <!-- Display -->
        <a name='Settings Display'><text>Display</text>
            <img src='gui_display' onclick='setting_layout()'><text>Layout</text></img>
            <img cond='fullscreen==0' src='gui_fullscreen' onclick='fullscreen=1'><text>Fullscreen</text></img>
            <img cond='fullscreen==1' src='gui_leave_fullscreen' onclick='fullscreen=0'><text>Window Mode</text></img>
            <img cond='navit.pitch==0' src='gui_map' onclick='navit.pitch=pitch;redraw_map();back_to_map()'><text>3D</text></img>
            <img cond='navit.pitch!=0' src='gui_map' onclick='navit.pitch=0;redraw_map();back_to_map()'><text>2D</text></img>
        </a>

        <!-- Route -->
        <a name='Route'><text>Route Information</text>
            <img src='gui_log' onclick='route_description()'><text>Description</text></img>
            <img src='gui_log' onclick='route_height_profile()'><text>Height Profile</text></img>
        </a>
    </html>
]]>

4.6.3.2.2. WVGA Configuration 1

Features of this menu:

  • Main menu:

    • Actions

    • Settings

    • Route (if a route is active)

    • Quit

  • Actions submenu:

    • Bookmarks

    • Town selection

    • GPS position

    • Vehicle position

  • Settings submenu:

    • Fullscreen yes/no

    • Map Selection

    • 3D/2D

    • About

  • Route submenu:

    • Vehicle Selection

    • Route Description

    • Route Height Profile

    • Stop Navigation (if a route is active)

<![CDATA[
<html>
    <a name='Main Menu'><text>Main menu</text>
        <a href='#Actions'>   <img src='gui_actions'>                    <text>Actions</text></img></a>
        <a href='#Settings'>  <img src='gui_rules'>                      <text>Settings</text></img></a>
                                      <img src='gui_quit'    onclick='quit()'>   <text>Quit</text></img>
                <a cond='navit.route.route_status&amp;52' href='#Route'>
                                      <img src='gui_vehicle'>                    <text>Route</text></img></a>
    </a>

    <a name='Actions'><text>Actions</text>
                <img src='gui_bookmark'                          onclick='bookmarks()'> <text>Bookmarks</text></img>
                <img src='gui_town'                              onclick='town()'>      <text>Town</text></img>
                <img cond='click_coord_geo'    src='gui_map'     onclick='position(click_coord_geo,_("Map Point"),8|32|48|128)'>            <script>write(click_coord_geo)</script> </img>
                <img cond='position_coord_geo' src='gui_vehicle' onclick='position(position_coord_geo,_("Vehicle Position"),8|32|48|128)'>  <script>write(position_coord_geo)</script> </img>
    </a>

    <a name='Settings'><text>Settings</text>
                <img cond='fullscreen==0'  src='gui_fullscreen'       onclick='fullscreen=1'>      <text>Fullscreen</text></img>
                <img cond='fullscreen==1'  src='gui_leave_fullscreen' onclick='fullscreen=0'>      <text>Window Mode</text></img>
                <img                       src='gui_maps'             onclick='setting_maps()'>    <text>Maps</text></img>

                <img cond='navit.pitch==0' src='gui_map'              onclick='navit.pitch=24;  redraw_map();back_to_map()'> <text>3D</text> </img>
                <img cond='navit.pitch!=0' src='gui_map'              onclick='navit.pitch=0;   redraw_map();back_to_map()'> <text>2D</text> </img>
                <img                       src='gui_about'            onclick='about()'>           <text>About</text></img>
    </a>

    <a name='Route'><text>Route</text>
                <img src='gui_vehicle_pedestrian'   onclick='setting_vehicle();back()'>          <text>Vehicle</text></img>

                <img src='gui_town'     onclick='route_description()'>                           <text>Description</text></img>
                <img src='gui_zoom_in'  onclick='route_height_profile()'>                        <text>Height Profile</text></img>
                <img src='gui_stop'     onclick='abort_navigation();redraw_map();back_to_map()'> <text>Stop Navigation</text></img>
    </a>
</html>
]]>

4.6.3.2.3. QVGA Square (240x240) Configuration 1 (German)

Features:

  • optimization for faster handling (e.g. all the “main actions” are in the first screen)

  • reduced numbers of screens (= menus)

  • included some additional features (e.g. autozoom, fixed-to-north, fixed-to-street, …)

  • deleted some not (yet) used features (e.g. “Height Profile”, …)

Example: With the first tap on the screen you got the Main-Menu. Second tap on bookmarks (1a), third tap on wanted target and forth tab on “set as target” you can set up for navigation with in 4 taps at all. Thats pretty fast.

The three screens (= menus):

  • 1.) Main => select target to navigate or doing something with a position (actual GPS or Mappoint)

  • 2.) Tuning => most used setups while navigating

  • 3.) Setup => rarely used (system)settings

../../_images/Screenshot-Navit-QVGA-Main-Menu.png

In the Main-Menu you can:

  • 1a) Do something with your bookmarks (e.g. navigate to a bookmark)

  • 1b) Do something with an address (e.g. navigate to an address)

  • 1c) Do something with your “map-position” (e.g. save as a bookmark, navigate to, search POIs nearby, …)

  • 1d) Do something with your “GPS-position” (e.g. save as a bookmark, navigate to, search POIs nearby, …)

  • 1e) Exit navit

  • 1f) Go to the next menu “Tuning”

In the Tuning-Menu you can:

  • 2a) Toggle map fixed to north on/off (my default is “fixed to north off”)

  • 2b) Toggle “autozoom” on/off (my default is “autozoom on”)

  • 2c) Toggle GPS-position fixed to street on/off (my default is “fixed to street on”)

  • 2d) Toggle fullscreen on/off (my default is “fullscreen on”)

  • 2e) Toggle view 3d-view on/off (my default is “3d-view off”)

  • 2f) Go to the next menu “Setup”

../../_images/Screenshot-Navit-QVGA-Tuning-Menu.png

(…all default values are defined and can be changed in the “navit.xml”)

../../_images/Screenshot-Navit-QVGA-Setup-Menu.png

In the Setup-Menu you can:

  • 3a) Call the “vehicle-menu” (e.g. there you can change your actual vehicle-profile)

  • 3b) Call the “map-menu” (e.g. there you can change your current map)

  • 3c) Call the “about-site”

  • 3d) Delete current navigaition-route (…only visible while navigating)

<![CDATA[

<html>
<a name='Main Menu'><text>Main menu</text>
    <img src='gui_bookmark' onclick='bookmarks()'><text>Bookmarks</text></img>
    <img src='gui_town' onclick='town()'><text>Town</text></img>
    <img cond='click_coord_geo' src='gui_map' onclick='position(click_coord_geo,_("Map Point"),8|16|32|64|256)'><script>write(click_coord_geo)</script></img>
    <img cond='position_coord_geo' src='gui_vehicle' onclick='position(position_coord_geo,_("Vehicle Position"),8|32|64|128|256)'><script>write(position_coord_geo)</script></img>
    <img src='gui_quit' onclick='quit()'><text>Quit</text></img>
    <a href='#Tuning'><img src='gui_arrow_right'><text>Tuning</text></img></a>
</a>



<a name='Tuning'><text>Tuning</text>
    <img cond='navit.orientation<0' src='gui_stop' onclick='navit.orientation=0;redraw_map();back_to_map()'><text>Norden</text></img>
    <img cond='navit.orientation>=0' src='gui_active' onclick='navit.orientation=-1;redraw_map();back_to_map()'><text>Norden</text></img>

    <img cond='navit.autozoom_active!=0' src='gui_active' onclick='navit.autozoom_active=0;redraw_map();back_to_map()'><text>AutoZoom</text></img>
    <img cond='navit.autozoom_active==0' src='gui_stop' onclick='navit.autozoom_active=1;redraw_map();back_to_map()'><text>AutoZoom</text></img>

    <img cond='navit.tracking==1' src='gui_active' onclick='navit.tracking=0;redraw_map();back_to_map()'><text>"Auf Strasse"</text></img>
    <img cond='navit.tracking==0' src='gui_stop' onclick='navit.tracking=1;redraw_map();back_to_map()'><text>"Auf Strasse"</text></img>

    <img cond='fullscreen==1' src='gui_active' onclick='fullscreen=0;redraw_map();back_to_map()'><text>Vollbild</text></img>
    <img cond='fullscreen==0' src='gui_stop' onclick='fullscreen=1;redraw_map();back_to_map()'><text>Vollbild</text></img>

    <img cond='navit.pitch==0' src='gui_stop' onclick='navit.pitch=60;redraw_map();back_to_map()'><text>3D</text></img>
    <img cond='navit.pitch!=0' src='gui_active' onclick='navit.pitch=0;redraw_map();back_to_map()'><text>3D</text></img>

    <a href='#Setup'><img src='gui_arrow_right'>Setup</img></a>
</a>



<a name='Setup'><text>Setup</text>
    <img src='gui_vehicle' onclick='setting_vehicle()'><text>Vehicle</text></img>
    <img src='gui_maps' onclick='setting_maps()'><text>Karten</text></img>
    <img src='gui_about'  onclick='about()'><text>About</text></img>
    <img cond='navit.route.route_status&amp;52' src='gui_stop' onclick='abort_navigation();redraw_map();back_to_map()'><text>Stop-Route</text></img>
</a>

</html>

]]>

4.6.3.2.4. Android Configuration

This is the configuration used on an Android phone. It is similar to the QVGA Square (240x240) configuration. Placeholders are used for conditional items when not in use.

<![CDATA[
<html>
  <a name='Main Menu'>
    <text>Main menu</text>
    <img src='gui_town' onclick='town()'><text>Town</text></img>

    <a href='#Actions'><img src='gui_actions'><text>Route</text></img></a>

    <img cond='navit.route.route_status&amp;52' src='gui_actions' onclick='route_description()'><text>Description</text></img>
    <img cond='!(navit.route.route_status&amp;52)' src='heliport'><text></text></img>

    <a href='#Settings'><img src='gui_rules'><text>Settings</text></img></a>

    <img src='gui_map' onclick='back_to_map()'><text>Show Map</text></img>

    <img src='gui_quit' onclick='quit()'><text>Quit</text></img>
  </a>

  <a name='Actions'>
    <text>Actions</text>
    <img src='gui_town' onclick='town()'><text>Town</text></img>

    <img src='gui_bookmark' onclick='bookmarks()'><text>Bookmarks</text></img>

    <img cond='click_coord_geo' src='gui_map' onclick='position(click_coord_geo,_("Map Point"),8|16|32|64|256)'><text>Map
                                                                                                                                        Position</text></img>
    <img cond='!click_coord_geo' src='heliport'><text></text></img>

    <img cond='position_coord_geo' src='gui_vehicle' onclick='position(position_coord_geo,_("Vehicle Position"),8|32|64|128|256)'><text>Vehicle
                                                                                                                                        Position</text></img>
    <img cond='!position_coord_geo' src='heliport'><text></text></img>

    <a cond='navit.route.route_status&amp;52' href='#Route'><img src='gui_actions' onclick='route_description()'><text>Route
                                                                                                                       Info</text></img></a>
    <img cond='!(navit.route.route_status&amp;52)' src='heliport'><text></text></img>

    <img cond='navit.route.route_status&amp;52' src='gui_stop' onclick='abort_navigation();redraw_map();back_to_map()'><text>Stop
Navigation</text></img>
    <img cond='!(navit.route.route_status&amp;52)' src='heliport'><text></text></img>
  </a>

  <a name='Settings'>
    <text>Settings</text>
    <img cond='navit.pitch==0' src='gui_stop' onclick='navit.pitch=60;redraw_map();back_to_map()'><text>3D</text></img>
    <img cond='navit.pitch!=0' src='gui_active' onclick='navit.pitch=0;redraw_map();back_to_map()'><text>3D</text></img>

    <img cond='navit.orientation==-1' src='gui_stop' onclick='navit.orientation=0;redraw_map();back_to_map()'><text>Einnorden</text></img>
    <img cond='navit.orientation>=0' src='gui_active' onclick='navit.orientation=-1;redraw_map();back_to_map()'><text>Einnorden</text></img>

    <img cond='navit.autozoom_active!=0' src='gui_active' onclick='navit.autozoom_active=0;redraw_map();back_to_map()'><text>AutoZoom</text></img>
    <img cond='navit.autozoom_active==0' src='gui_stop' onclick='navit.autozoom_active=1;redraw_map();back_to_map()'><text>AutoZoom</text></img>

    <img cond='navit.tracking==1' src='gui_active' onclick='navit.tracking=0;redraw_map();back_to_map()'><text>Map
                                                                                                               Tracking</text></img>
    <img cond='navit.tracking==0' src='gui_stop' onclick='navit.tracking=1;redraw_map();back_to_map()'><text>Map
                                                                                                             Tracking</text></img>

    <a href='#Main Menu'><img src='gui_arrow_left'><text>Back</text></img></a>

    <a href='#Settings Display'><img src='gui_arrow_right'><text>More</text></img></a>
  </a>

  <a name='Settings Display'>
    <text>More Settings</text>
    <img src='gui_vehicle' onclick='setting_vehicle()'><text>Vehicle</text></img>

    <img src='gui_maps' onclick='setting_maps()'><text>Maps</text></img>

    <img src='gui_display' onclick='setting_layout()'><text>Display
                                                           Layout</text></img>

    <img src='gui_about'  onclick='about()'><text>About</text></img>

    <a href='#Settings'><img src='gui_arrow_left'> <text>Back</text></img></a>
  </a>

  <a name='Tools'>
    <text>Tools</text>
    <img src='gui_actions' onclick='locale()'><text>Show Locale</text></img>
  </a>

  <a name='Route'>
    <text>Route</text>
    <img src='gui_actions' onclick='route_description()'><text>Description</text></img>

    <img src='gui_actions' onclick='route_height_profile()'><text>Height Profile</text></img>
  </a>
</html>
]]>

4.6.3.2.5. 0606.at Android GUI

This is the Internal GUI configuration used in the 0606.at Android Layout (only the font size has to be set to 466 instead of 700 for MDPI versions).

See also: OSD Layouts.

<gui type="internal" enabled="yes" font_size="700" ><![CDATA[
                <html>
                <a name='Main Menu'><text>Main menu</text>
          <img src='gui_town' onclick='town()'><text>Town</text></img>
          <img cond='click_coord_geo' src='gui_map' onclick='position(click_coord_geo,_("Map Point"),8|16|32|64|256)'><script>write(click_coord_geo)</script></img>
                    <img src='gui_bookmark' onclick='bookmarks()'><text>Bookmarks</text></img>
                    <img cond='flags&amp;2' src='gui_map' onclick='back_to_map()'><text>Show Map</text></img>
                    <a href='#Settings'><img src='gui_settings'><text>Settings</text></img></a>
          <a href='#Route'><img src='gui_settings'><text>Route</text></img></a>
          <img src='gui_quit' onclick='quit()'><text>Quit</text></img>
                </a>
            <a name='Settings'><text>Settings</text>
                <a href='#Settings Display'><img src='gui_display'><text>Display</text></img></a>
                <img src='gui_maps' onclick='setting_maps()'><text>Maps</text></img>
                <img src='gui_vehicle' onclick='setting_vehicle()'><text>Vehicle</text></img>
                <img src='gui_rules' onclick='setting_rules()'><text>Rules</text></img>
        <img src='gui_about'  onclick='about()'><text>About</text></img>
        <img cond='navit.orientation<0' src='gui_stop' onclick='navit.orientation=0;redraw_map();back_to_map()'><text>Norden</text></img>
    <img cond='navit.orientation>=0' src='gui_active' onclick='navit.orientation=-1;redraw_map();back_to_map()'><text>Norden</text></img>

    <img cond='navit.autozoom_active!=0' src='gui_active' onclick='navit.autozoom_active=0;redraw_map();back_to_map()'><text>AutoZoom</text></img>
    <img cond='navit.autozoom_active==0' src='gui_stop' onclick='navit.autozoom_active=1;redraw_map();back_to_map()'><text>AutoZoom</text></img>

    <img cond='navit.tracking==1' src='gui_active' onclick='navit.tracking=0;redraw_map();back_to_map()'><text>"Auf Strasse"</text></img>
    <img cond='navit.tracking==0' src='gui_stop' onclick='navit.tracking=1;redraw_map();back_to_map()'><text>"Auf Strasse"</text></img>
        <a href='#Tools'><img src='gui_tools'><text>Tools</text></img></a>
            </a>
            <a name='Settings Display'><text>Display</text>
                <img src='gui_display' onclick='setting_layout()'><text>Layout</text></img>
                <img cond='fullscreen==0' src='gui_fullscreen' onclick='fullscreen=1'><text>Fullscreen</text></img>
                <img cond='fullscreen==1' src='gui_leave_fullscreen' onclick='fullscreen=0'><text>Window Mode</text></img>
            </a>
            <a name='Tools'><text>Tools</text>
                <img src='gui_actions' onclick='locale()'><text>Show Locale</text></img>
        <img cond='navit.pitch==0' src='gui_map' onclick='navit.pitch=pitch;redraw_map();back_to_map()'><text>3D</text></img>
                <img cond='navit.pitch!=0' src='gui_map' onclick='navit.pitch=0;redraw_map();back_to_map()'><text>2D</text></img>
            </a>
            <a name='Route'><text>Route</text>
                <img src='gui_actions' onclick='route_description()'><text>Description</text></img>
                <img src='gui_actions' onclick='route_height_profile()'><text>Height Profile</text></img>
        <img cond='navit.route.route_status&amp;52' src='gui_stop' onclick='abort_navigation()'><text>Stop
Navigation</text></img>
            </a>
            </html>
        ]]></gui>