Difference between revisions of "User:Korrosa"

From Navit's Wiki
Jump to: navigation, search
(Configuration)
(Configuration)
Line 3: Line 3:
  
 
=Configuration=
 
=Configuration=
Tags shown in order of appearance in the navit.xml shipped with Navit. Attributes appear in alphabetical order for each tag.
+
*Tags shown in order of appearance in the navit.xml shipped with Navit.
 +
*Attributes appear in alphabetical order for each tag.
 +
*'''Bold''' values denote default values if attributes are not explicitly specified.
 +
*Value types:
 +
** int = integer
 +
** bool = boolean 1 or 0
 +
** dbl = double
  
{| style="border-style:solid;border-width:1px;border-color:#aaa;background: #FFFFFF;border-collapse: collapse;font-size: 95%;" border="1" cellpadding="4"
+
{| style="border-style:solid;border-width:1px;border-color:#aaa;background: #FFFFFF;border-collapse: collapse;font-size: 95%;width:100%;" border="1" cellpadding="5"
 
|+ Navit configuration options
 
|+ Navit configuration options
 
|-
 
|-
 
! scope="col" | Tag
 
! scope="col" | Tag
 
! scope="col" | Attribute
 
! scope="col" | Attribute
! scope="col" | Required
 
! scope="col" | Type
 
 
! scope="col" | Units
 
! scope="col" | Units
 
! scope="col" | Values
 
! scope="col" | Values
 
! scope="col" | Notes
 
! scope="col" | Notes
 
! scope="col" | Example
 
! scope="col" | Example
|-
+
|- style="background:#EEEEEE"
! scope="row" rowspan="10"| navit
+
! scope="row" rowspan="11"| navit
 +
|
 +
|
 +
|
 +
|
 +
|
 +
|- style="background:#EEEEEE"
 
| center
 
| center
| align="center" | Y
 
| double
 
 
| coords
 
| coords
| Either:<br /><tt>DDMM.SS N/S DDMM.SS E/W</tt> <br /> <tt>[-]DD.dd [-]DD.dd</tt>
+
| <tt>DD.dd</tt> or <tt>DDMM.ss</tt>
| Map will be centred at these coordinates on startup.
+
| Map will be centred at these coordinates on startup. Coordinates are either in decimal degrees (with sign in front to denote N/S or E/W) or decimal minutes with trailing N/S or E/W where appropriate.<br />'''Default: <tt>53.13 11.70</tt>'''
| <tt><navit ... center="4808 N 1134 E" ... ></tt>
+
| <tt>center="4808 N 1134 E"</tt>
|-
+
|- style="background:#EEEEEE"
 
| orientation
 
| orientation
| align="center" | Y
 
| boolean?
 
 
|  
 
|  
| 0 / -1
+
| 0 / '''-1'''
 
| <tt>orientation="0"</tt>: Map oriented North.<br /><tt>orientation="-1"</tt>: Map oriented in direction of travel.<br />This is equivalent to selecting <tt>Settings -> Rules -> Northing</tt> in the internal gui.
 
| <tt>orientation="0"</tt>: Map oriented North.<br /><tt>orientation="-1"</tt>: Map oriented in direction of travel.<br />This is equivalent to selecting <tt>Settings -> Rules -> Northing</tt> in the internal gui.
| <tt><navit ... orientation="-1" ... ></tt>
+
| <tt>orientation="-1"</tt>
|-
+
|- style="background:#EEEEEE"
 
| tracking
 
| tracking
| align="center" | Y
 
| boolean
 
 
|  
 
|  
| 0 / 1
+
| 0 / '''1'''
 
| <tt>tracking="1"</tt>: Vehicle cursor will lock to the roads on the map.<br />This is equivalent to selecting <tt>Settings -> Rules -> Lock on road</tt> in the internal gui.
 
| <tt>tracking="1"</tt>: Vehicle cursor will lock to the roads on the map.<br />This is equivalent to selecting <tt>Settings -> Rules -> Lock on road</tt> in the internal gui.
| <tt><navit ... tracking="1" ... ></tt>
+
| <tt>tracking="1"</tt>
|-
+
|- style="background:#EEEEEE"
 
| zoom
 
| zoom
| align="center" | Y
 
| integer
 
 
|  
 
|  
| 1 to &infin;
+
| 1 - &infin;<br /> '''256'''
| <tt>zoom="1"</tt>: Most zoomed in.<br />Map will be zoomed in at this level on startup.  
+
| <tt>zoom="1"</tt>: Most zoomed in. Upper limit is actually 2097152.<br />Map will be zoomed in at this level on startup.  
| <tt><navit ... zoom="256" ... ></tt>
+
| <tt>zoom="50"</tt>
 
|-
 
|-
 
| autozoom_active
 
| autozoom_active
| align="center" | N
 
| boolean
 
 
|  
 
|  
| 0 / 1
+
| '''0''' / 1
| <tt>autozoom_active="0"</tt>: Autozoom disabled.<br /><tt>autozoom_active="1"</tt>: Autozoom enabled.<br /> Default: disabled.
+
| <tt>autozoom_active="0"</tt>: Autozoom disabled.<br /><tt>autozoom_active="1"</tt>: Autozoom enabled.<br />  
| <tt><navit ... autozoom_active="1" ... ></tt>
+
| <tt>autozoom_active="1"</tt>
 
|-
 
|-
 
| autozoom_secs
 
| autozoom_secs
| align="center" | N
 
| integer
 
 
| seconds
 
| seconds
| 1 to &infin;
+
| 1 - &infin;<br />'''10'''
 
| Number of seconds of the way ahead to leave visible during autozoom.<br /> In effect, this specifies the zoom level when autozoom is enabled.<br /><tt>autozoom_secs="1"</tt> is closest zoom.<br />This attribute has no effect without <tt>autozoom_active="1"</tt>.
 
| Number of seconds of the way ahead to leave visible during autozoom.<br /> In effect, this specifies the zoom level when autozoom is enabled.<br /><tt>autozoom_secs="1"</tt> is closest zoom.<br />This attribute has no effect without <tt>autozoom_active="1"</tt>.
| <tt><navit ... autozoom_secs="60" ... ></tt>
+
| <tt>autozoom_secs="60"</tt>
 
|-
 
|-
 
| pitch
 
| pitch
| align="center" | N
 
| integer
 
 
| degrees
 
| degrees
| 1 to 359
+
| 1 - 359
 
| <tt>pitch="0"</tt>: Bird's-eye view of map.<br /><tt>pitch="20"</tt>: Map tilted by 20 degrees to give 3D view.
 
| <tt>pitch="0"</tt>: Bird's-eye view of map.<br /><tt>pitch="20"</tt>: Map tilted by 20 degrees to give 3D view.
| <tt><navit ... pitch="20" ... ></tt>
+
| <tt>pitch="20"</tt>
 
|-
 
|-
 
| radius
 
| radius
| align="center" | N
 
| integer
 
 
| percent
 
| percent
| 1 to 100
+
| 1 - 100<br />'''30'''
 
| Percentage of screen size to offset map from centre when moving.<br />This causes the map to "lead" the vehicle, showing more of where you're going and less of where you've been.
 
| Percentage of screen size to offset map from centre when moving.<br />This causes the map to "lead" the vehicle, showing more of where you're going and less of where you've been.
| <tt><navit ... radius="33" ... ></tt>
+
| <tt>radius="33"</tt>
 
|-
 
|-
 
| recent_dest
 
| recent_dest
| align="center" | N
 
| integer
 
 
|  
 
|  
| 1 to &infin;
+
| 1 - &infin;<br />'''10'''
 
| Number of entries kept in destination.txt. This text file stores the most recent destinations set by the user in Navit.<br /> Default: &infin;
 
| Number of entries kept in destination.txt. This text file stores the most recent destinations set by the user in Navit.<br /> Default: &infin;
| <tt><navit ... recent_dest="10" ... ></tt>
+
| <tt>recent_dest="20"</tt>
 
|-
 
|-
 
| timeout
 
| timeout
| align="center" | N
+
| gps updates
| integer
+
| 1 - &infin;<br />'''10'''
 +
| When the user scrolls the map, it stays there. After <tt>timeout</tt> number of GPS updates the map jumps back to the current location of the active vehicle. (see {{Trac|653}})
 +
| <tt>timeout="5"</tt>
 +
 
 +
|- style="background:#EEEEEE"
 +
! scope="row" rowspan="2"| graphics
 +
|
 +
|
 +
|
 +
| Insert inbetween <tt><navit> ... </navit></tt> tags
 +
|
 +
|- style="background:#EEEEEE"
 +
| type
 +
|
 +
| <tt>gtk_drawing_area<br />qt_qpainter<br />sdl<br />opengl</tt>
 +
| Type of graphics to use for display.
 +
| <tt>graphics="gtk_drawing_area"</tt>
 +
 
 +
|- style="background:#EEEEEE"
 +
! scope="row" rowspan="11"| gui
 +
|
 +
|
 +
|
 +
| Insert inbetween <tt><navit> ... </navit></tt> tags
 +
|
 +
|- style="background:#EEEEEE"
 +
| type
 +
|
 +
| <tt>gtk<br />internal<br />qml<br />cegui</tt>
 +
| Type of user interface to use
 +
| <tt>type="internal"</tt>
 +
|- style="background:#EEEEEE"
 +
| enabled
 +
|
 +
| <tt>yes</tt> / <tt>no</tt>
 +
| Enable this user interface. This attribute enables you to define multiple user interfaces within navit.xml (i.e. multiple <tt><gui> ... </gui></tt> tags, and quickly switch between them by changing the <tt>enabled</tt> status.
 +
| <tt>enabled="yes"</tt>
 +
|-
 +
| font_size
 +
| Pt fractions
 +
| 1 - &infin;
 +
| The base text size to use for text and labels in the menus. This only applies when <tt>type="internal"</tt>
 +
| <tt>font_size="350"</tt>
 +
|-
 +
| icon_xs
 +
| pixels
 +
| 1 - &infin;
 +
| The size that extra-small style icons should be scaled to (e.g. country flag on town search). This only applies when <tt>type="internal"</tt>
 +
| <tt>icon_xs="32"</tt>
 +
|-
 +
| icon_s
 +
| pixels
 +
| 1 - &infin;
 +
| The size that small style icons should be scaled to (e.g. icons of internal GUI toolbar). This only applies when <tt>type="internal"</tt>
 +
| <tt>icon_s="96"</tt>
 +
|-
 +
| icon_l
 +
| pixels
 +
| 1 - &infin;
 +
| The size that large style icons should be scaled to (e.g. icons of internal GUI menu). This only applies when <tt>type="internal"</tt>
 +
| <tt>icon_l="96"</tt>
 +
|-
 +
| fullscreen
 +
|
 +
| 0 / 1
 +
| <tt>fullscreen="1"</tt>: Start Navit in fullscreen mode
 +
| <tt>fullscreen="1"</tt>
 +
|-
 +
| menubar
 +
|
 +
| 0 / 1
 +
| Toggle display of the menu bar. This only applies when <tt>type="gtk"</tt>
 +
| <tt>menubar="1"</tt>
 +
|-
 +
| toolbar
 
|  
 
|  
| 1 to &infin;
+
| 0 / 1
| When the user scrolls the map, it stays there. After <tt>timeout</tt> number of GPS updates the map jumps back to the current location of the active vehicle. (see {{Trac|653}})
+
| Toggle display of the toolbar. This only applies when <tt>type="gtk"</tt>
| <tt><navit ... timeout="10" ... ></tt>
+
| <tt>toolbar="1"</tt>
 +
|-
 +
| statusbar
 +
|
 +
| 0 / 1
 +
| Toggle display of the status bar. This only applies when <tt>type="gtk"</tt>
 +
| <tt>statusbar="1"</tt>
 
|}
 
|}

Revision as of 21:53, 3 November 2010

OSM Layout

Mapnik-style rendering

Configuration

  • Tags shown in order of appearance in the navit.xml shipped with Navit.
  • Attributes appear in alphabetical order for each tag.
  • Bold values denote default values if attributes are not explicitly specified.
  • Value types:
    • int = integer
    • bool = boolean 1 or 0
    • dbl = double
Navit configuration options
Tag Attribute Units Values Notes Example
navit
center coords DD.dd or DDMM.ss Map will be centred at these coordinates on startup. Coordinates are either in decimal degrees (with sign in front to denote N/S or E/W) or decimal minutes with trailing N/S or E/W where appropriate.
Default: 53.13 11.70
center="4808 N 1134 E"
orientation 0 / -1 orientation="0": Map oriented North.
orientation="-1": Map oriented in direction of travel.
This is equivalent to selecting Settings -> Rules -> Northing in the internal gui.
orientation="-1"
tracking 0 / 1 tracking="1": Vehicle cursor will lock to the roads on the map.
This is equivalent to selecting Settings -> Rules -> Lock on road in the internal gui.
tracking="1"
zoom 1 - ∞
256
zoom="1": Most zoomed in. Upper limit is actually 2097152.
Map will be zoomed in at this level on startup.
zoom="50"
autozoom_active 0 / 1 autozoom_active="0": Autozoom disabled.
autozoom_active="1": Autozoom enabled.
autozoom_active="1"
autozoom_secs seconds 1 - ∞
10
Number of seconds of the way ahead to leave visible during autozoom.
In effect, this specifies the zoom level when autozoom is enabled.
autozoom_secs="1" is closest zoom.
This attribute has no effect without autozoom_active="1".
autozoom_secs="60"
pitch degrees 1 - 359 pitch="0": Bird's-eye view of map.
pitch="20": Map tilted by 20 degrees to give 3D view.
pitch="20"
radius percent 1 - 100
30
Percentage of screen size to offset map from centre when moving.
This causes the map to "lead" the vehicle, showing more of where you're going and less of where you've been.
radius="33"
recent_dest 1 - ∞
10
Number of entries kept in destination.txt. This text file stores the most recent destinations set by the user in Navit.
Default: ∞
recent_dest="20"
timeout gps updates 1 - ∞
10
When the user scrolls the map, it stays there. After timeout number of GPS updates the map jumps back to the current location of the active vehicle. (see #653) timeout="5"
graphics Insert inbetween <navit> ... </navit> tags
type gtk_drawing_area
qt_qpainter
sdl
opengl
Type of graphics to use for display. graphics="gtk_drawing_area"
gui Insert inbetween <navit> ... </navit> tags
type gtk
internal
qml
cegui
Type of user interface to use type="internal"
enabled yes / no Enable this user interface. This attribute enables you to define multiple user interfaces within navit.xml (i.e. multiple <gui> ... </gui> tags, and quickly switch between them by changing the enabled status. enabled="yes"
font_size Pt fractions 1 - ∞ The base text size to use for text and labels in the menus. This only applies when type="internal" font_size="350"
icon_xs pixels 1 - ∞ The size that extra-small style icons should be scaled to (e.g. country flag on town search). This only applies when type="internal" icon_xs="32"
icon_s pixels 1 - ∞ The size that small style icons should be scaled to (e.g. icons of internal GUI toolbar). This only applies when type="internal" icon_s="96"
icon_l pixels 1 - ∞ The size that large style icons should be scaled to (e.g. icons of internal GUI menu). This only applies when type="internal" icon_l="96"
fullscreen 0 / 1 fullscreen="1": Start Navit in fullscreen mode fullscreen="1"
menubar 0 / 1 Toggle display of the menu bar. This only applies when type="gtk" menubar="1"
toolbar 0 / 1 Toggle display of the toolbar. This only applies when type="gtk" toolbar="1"
statusbar 0 / 1 Toggle display of the status bar. This only applies when type="gtk" statusbar="1"