Difference between revisions of "User:Korrosa"

From Navit's Wiki
Jump to: navigation, search
(Configuration)
Line 10: Line 10:
 
! scope="col" | Attribute
 
! scope="col" | Attribute
 
! scope="col" | Required
 
! scope="col" | Required
! scope="col" | Value Type
+
! scope="col" | Type
 +
! scope="col" | Units
 
! scope="col" | Values
 
! scope="col" | Values
 
! scope="col" | Notes
 
! scope="col" | Notes
 
! scope="col" | Example
 
! scope="col" | Example
 
|-
 
|-
! scope="row" rowspan="3"| navit
+
! scope="row" rowspan="10"| navit
 
| center
 
| center
 
| align="center" | Y
 
| align="center" | Y
 +
| double
 
| coords
 
| coords
| Either:<br /><tt>[D]DMM.SS[s][s] N/S [D][D]DMM.SS[s][s] E/W</tt> <br /> <tt>[-][D]D.d[d]... [-][D][D]D.d[d]...</tt>
+
| Either:<br /><tt>DDMM.SS N/S DDMM.SS E/W</tt> <br /> <tt>[-]DD.dd [-]DD.dd</tt>
 
| Map will be centred at these coordinates on startup.
 
| Map will be centred at these coordinates on startup.
| <tt><navit center="4808 N 1134 E"></tt>
+
| <tt><navit ... center="4808 N 1134 E" ... ></tt>
 +
|-
 +
| orientation
 +
| align="center" | Y
 +
| boolean?
 +
|
 +
| 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><navit ... orientation="-1" ... ></tt>
 
|-
 
|-
 
| tracking
 
| tracking
| Y
+
| align="center" | Y
 
| boolean
 
| boolean
| 0/1
+
|
| When enabled (tracking="1"), the vehicle cursor will lock to the roads on the map. This is equivalent to selecting <tt>Settings -> Rules -> Lock on road</tt> in the internal gui.
+
| 0 / 1
| <tt><navit tracking="1"></tt>
+
| <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>
 
|-
 
|-
 
| zoom
 
| zoom
| Y
+
| align="center" | Y
 +
| integer
 +
|
 +
| 1 to &infin;
 +
| <tt>zoom="1"</tt>: Most zoomed in.<br />Map will be zoomed in at this level on startup.
 +
| <tt><navit ... zoom="256" ... ></tt>
 +
|-
 +
| autozoom_active
 +
| align="center" | N
 +
| boolean
 +
|
 +
| 0 / 1
 +
| <tt>autozoom_active="0"</tt>: Autozoom disabled.<br /><tt>autozoom_active="1"</tt>: Autozoom enabled.<br /> Default: disabled.
 +
| <tt><navit ... autozoom_active="1" ... ></tt>
 +
|-
 +
| autozoom_secs
 +
| align="center" | N
 +
| integer
 +
| seconds
 +
| 1 to &infin;
 +
| 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>
 +
|-
 +
| pitch
 +
| align="center" | N
 +
| integer
 +
| degrees
 +
| 1 to 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><navit ... pitch="20" ... ></tt>
 +
|-
 +
| radius
 +
| align="center" | N
 +
| integer
 +
| percent
 +
| 1 to 100
 +
| 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>
 +
|-
 +
| recent_dest
 +
| align="center" | N
 +
| integer
 +
|
 +
| 1 to &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>
 +
|-
 +
| timeout
 +
| align="center" | N
 
| integer
 
| integer
 +
|
 
| 1 to &infin;
 
| 1 to &infin;
| Map will be zoomed in at this level on startup. 1 is zoomed in.
+
| 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.
| <tt><navit zoom="256"></tt>
+
| <tt><navit ... timeout="10" ... ></tt>
 
|}
 
|}

Revision as of 13:33, 3 November 2010

OSM Layout

Mapnik-style rendering

Configuration

Navit configuration options
Tag Attribute Required Type Units Values Notes Example
navit center Y double coords Either:
DDMM.SS N/S DDMM.SS E/W
[-]DD.dd [-]DD.dd
Map will be centred at these coordinates on startup. <navit ... center="4808 N 1134 E" ... >
orientation Y boolean? 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.
<navit ... orientation="-1" ... >
tracking Y boolean 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.
<navit ... tracking="1" ... >
zoom Y integer 1 to ∞ zoom="1": Most zoomed in.
Map will be zoomed in at this level on startup.
<navit ... zoom="256" ... >
autozoom_active N boolean 0 / 1 autozoom_active="0": Autozoom disabled.
autozoom_active="1": Autozoom enabled.
Default: disabled.
<navit ... autozoom_active="1" ... >
autozoom_secs N integer seconds 1 to ∞ 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".
<navit ... autozoom_secs="60" ... >
pitch N integer degrees 1 to 359 pitch="0": Bird's-eye view of map.
pitch="20": Map tilted by 20 degrees to give 3D view.
<navit ... pitch="20" ... >
radius N integer percent 1 to 100 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.
<navit ... radius="33" ... >
recent_dest N integer 1 to ∞ Number of entries kept in destination.txt. This text file stores the most recent destinations set by the user in Navit.
Default: ∞
<navit ... recent_dest="10" ... >
timeout N integer 1 to ∞ 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. <navit ... timeout="10" ... >