Difference between revisions of "User:Tauso"

From Navit's Wiki
Jump to: navigation, search
(Blanked the page)
 
Line 1: Line 1:
My Layout is based on one 800x480 layout, which was posted on this page some years ago. I changed it to fit for my FWVGA (854x480px) Android device (Motorola Milestone 2 (Droid 2)).
 
It should work both horizontally and vertically and differs if a route is set or not.
 
  
[http://urfin.magix.net/osd_graphics_tauso.zip Download the graphic files here] and put it in an subfolder osd_graphics of your navit dir. (Or just change the /sdcard/navit/osd_graphics/ location in the XML to your needs)
 
 
Most of the elements should be self explaining, but for the sake of completeness:
 
 
[[File:854_480_horizontal_route.png|360px|right]]
 
==== With route: ====
 
 
'''Top'''
 
* left: Streetname of the street driving
 
* beneath: GPS Status (actually it is "vehicle.position_radius", because the "real" gps status wasn't working on my Android device) and Route_Status
 
* right: remaining length of route (km or meter)
 
* beneath: time of arrival / remaining time
 
 
'''Middle'''
 
* left: zoom in and back to position (if you dragged the map somewhere else)
 
* right: zoom out and abort routing
 
 
'''Bottom'''
 
* left: next turn with remaining lenght to it
 
* middle: on which street to turn
 
* right: driving speed and speed restriction of street with speed warner (turns red if driving to fast)
 
 
 
If you find any error or have a question regarding this layout, feel free to contact me here.
 
 
 
[[File:vertical_no_route.png|200px|right]]
 
 
==== Without route ====
 
 
 
'''Top'''
 
* left: Streetname of the street driving
 
* beneath: GPS Status (actually it is "vehicle.position_radius", because the "real" gps status wasn't working on my Android device)
 
* right: Height (meter)
 
 
 
'''Middle'''
 
* left: zoom in and back to position (if you dragged the map somewhere else)
 
* right: zoom out
 
 
'''Bottom'''
 
* right: driving speed and speed restriction of street with speed warner (turns red if driving to fast)
 
 
 
{| width="100%" class="collapsible collapsed wikitable"
 
|-
 
! Layout XML
 
|-
 
|
 
<code>
 
<pre style="white-space: pre-wrap;">
 
<!-- Change osd_configuration depending on route_status -->
 
<osd name="ifroute" update_period="2" type="cmd_interface" h="1" w="1" x="-1" y="-1" command='osd_configuration=
 
route.route_status==0 ? 3 : 5
 
' />
 
 
<!-- Change route status images depending on route_status -->
 
<osd name="routestat" update_period="2" type="cmd_interface" h="1" w="1" x="-1" y="-1" osd_configuration="4" command='
 
osd[@name=="show_route_status"].src =
 
route.route_status==1 ? "/sdcard/navit/osd_graphics/route_status_dest_89_40.png" :
 
(route.route_status==0 ? "" : 
 
(route.route_status==3 ? "/sdcard/navit/osd_graphics/route_status_no_89_40.png" :
 
(route.route_status==5 ? "/sdcard/navit/osd_graphics/route_status_path_89_40.png" :
 
(route.route_status==13 ? "/sdcard/navit/osd_graphics/route_status_graph_89_40.png" :
 
(route.route_status==17 ? "/sdcard/navit/osd_graphics/route_status_done_89_40.png" :
 
(route.route_status==33 ? "/sdcard/navit/osd_graphics/route_status_done_89_40.png" : "/sdcard/navit/osd_graphics/route_status_no_89_40.png"
 
))))))
 
' />
 
 
<!-- Change position accuracy images depending on position_radius -->
 
<osd name="accuracy" enabled="yes" update_period="5" type="cmd_interface" h="1" w="1" x="-1" y="-1" osd_configuration="1" command='
 
osd[@name=="position_accuracy"].src =
 
vehicle.position_radius==0 ? "/sdcard/navit/osd_graphics/gps_accuracy_1_80_40.png" :
 
(vehicle.position_radius<=2 ? "/sdcard/navit/osd_graphics/gps_accuracy_9_80_40.png" :
 
(vehicle.position_radius<=5 ? "/sdcard/navit/osd_graphics/gps_accuracy_8_80_40.png" :
 
(vehicle.position_radius<=10 ? "/sdcard/navit/osd_graphics/gps_accuracy_7_80_40.png" :
 
(vehicle.position_radius<=15 ? "/sdcard/navit/osd_graphics/gps_accuracy_6_80_40.png" :
 
(vehicle.position_radius<=20 ? "/sdcard/navit/osd_graphics/gps_accuracy_5_80_40.png" :
 
(vehicle.position_radius<=30 ? "/sdcard/navit/osd_graphics/gps_accuracy_4_80_40.png" :
 
(vehicle.position_radius<=50 ? "/sdcard/navit/osd_graphics/gps_accuracy_3_80_40.png" :
 
(vehicle.position_radius<=100 ? "/sdcard/navit/osd_graphics/gps_accuracy_2_80_40.png" : "/sdcard/navit/osd_graphics/gps_accuracy_1_80_40.png"
 
))))))))
 
' />
 
 
<!-- OSD Elements -->
 
 
<!-- Buttons -->
 
<osd type="button" src="/sdcard/navit/osd_graphics/zoom_in_64_64.png" command="zoom_in()" x="1" y="95" osd_configuration="1"/>
 
<osd type="button" src="/sdcard/navit/osd_graphics/zoom_out_64_64.png" command="zoom_out()" x="-66" y="95" osd_configuration="1"/>
 
<osd type="button" src="/sdcard/navit/osd_graphics/back_start_64_64.png" command="follow=0;set_center_cursor()" x="1" y="165" enable_expression="follow&gt;1" osd_configuration="1"/>
 
<osd type="button" src="/sdcard/navit/osd_graphics/abort_64_64.png" command="gui.abort_navigation()" x="-66" y="165" osd_configuration="4"/>
 
 
<!-- head -->
 
<osd type="text" label="${tracking.item.street_name} ${tracking.item.street_name_systematic}" x="0" y="0" w="854" h="40" font_size="400" text_color="#ffffffff" background_color="#00000000" align="4" osd_configuration="6"/>
 
<osd type="button" command="" src="/sdcard/navit/osd_graphics/upper_854_45.png" x="0" y="0" w="854" h="45" osd_configuration="1"/>
 
 
<!-- head left -->
 
<osd name="position_accuracy" type="button" command="" src="/sdcard/navit/osd_graphics/gps_accuracy_1_80_40.png" x="0" y="45" w="80" h="40" osd_configuration="1"/>
 
<osd name="show_route_status" command="" enabled="yes" type="button" x="71" y="45" w="89" h="40" src="/sdcard/navit/osd_graphics/route_status_dest_89_40.png" osd_configuration="4"/>
 
 
<!-- head right -->
 
<osd type="text" label="${navigation.item.destination_length[named]}" x="-120" y="0" w="120" h="40" font_size="400" align="0" background_color="#00000000" osd_configuration="4"/>
 
<osd type="text" label="H:${vehicle.position_height}m " x="-120" y="0" w="120" h="40" font_size="375" align="8" text_color="#ffffffff" background_color="#00000000" osd_configuration="2"/>
 
<osd type="text" label="${navigation.item.destination_time[arrival]} / ${navigation.item.destination_time[remaining]}" x="-170" y="45" w="180" h="40" align="4" font_size="400" background_color="#00000000" osd_configuration="4"/>
 
<osd type="button" command="follow=80000;zoom_to_route();" src="/sdcard/navit/osd_graphics/upper_right_190_45.png" x="-190" y="45" w="190" h="45" osd_configuration="4" />
 
 
<!-- foot -->
 
<osd type="text" label="auf ${navigation.item[1].street_name} ${navigation.item[1].street_name_systematic}" x="128" y="-40" w="726" h="40" font_size="400" align="4" background_color="#00000000" osd_configuration="4"/>
 
<osd type="button" command="" src="/sdcard/navit/osd_graphics/lower_route_854_140.png" x="0" y="-140" w="854" h="140" osd_configuration="4" />
 
 
<!-- foot left -->
 
<osd type="navigation_next_turn" x="0" y="-135" w="128" h="90" icon_src="%s_wh_64_64.png" background_color="#00000000" osd_configuration="4"/>
 
<osd type="text" label="in ${navigation.item[1].length[named]}" x="0" y="-40" w="128" h="40" font_size="400" align="4" background_color="#00000000" osd_configuration="4"/>
 
 
<!-- foot right -->
 
<osd type="text" label="${vehicle.position_speed[value]}" x="-160" y="-105" w="90" h="60" font_size="600" background_color="#00000000" osd_configuration="1"/>
 
<osd type="text" label="${tracking.item.route_speed[value]}" x="-70" y="-105" w="70" h="60" font_size="500" background_color="#00000000" osd_configuration="1"/>
 
<osd type="speed_warner" x="-69" y="-105" w="70"  h="60" font_size="500" text_color="#FF000000" background_color="#00000000" osd_configuration="1"/>
 
<osd type="button" command="" src="/sdcard/navit/osd_graphics/lower_right_190_65.png" x="-190" y="-108" w="190" h="65" osd_configuration="2"/>
 
<osd type="button" command="" src="/sdcard/navit/osd_graphics/lower_right_route_190_65.png" x="-190" y="-110" w="190" h="65" osd_configuration="4" />
 
</pre>
 
</code>
 
|}
 

Latest revision as of 21:09, 7 August 2014