Merging Navit branch to R3

This commit is contained in:
Gaston Gonzalez
2024-10-02 09:29:17 -07:00
10 changed files with 7448 additions and 29 deletions
+15
View File
@@ -0,0 +1,15 @@
# Adding a Map to Navit
1. Visit [Navit - Planet Extractor](http://maps3.navit-project.org/)
2. Zoom into you desired region.
3. Under "Map Controls," click _select_.
3. With your mouse, define the bounding box for your offline map.
4. Click the _Get map!_ button.
5. Copy the map to user's home directory under: `~/.navit/map/`.
6. Rename the map file to `et_default.bin`.
+10 -5
View File
@@ -9,7 +9,6 @@
<config xmlns:xi="http://www.w3.org/2001/XInclude">
<plugins>
<plugin path="$NAVIT_LIBDIR/*/${NAVIT_LIBPREFIX}lib*.so" ondemand="yes"/>
<plugin path="$NAVIT_LIBDIR/autoload/${NAVIT_LIBPREFIX}lib*.so"/>
<plugin path="$NAVIT_LIBDIR/*/${NAVIT_LIBPREFIX}libbinding_dbus.so" active="no"/>
<plugin path="$NAVIT_LIBDIR/*/${NAVIT_LIBPREFIX}libgraphics_null.so" active="no"/>
</plugins>
@@ -34,7 +33,9 @@
Center coordinates format: "Long Lat" in decimal degrees (WGS 84).
For other formats see http://wiki.navit-project.org/index.php/Coordinate_format.
-->
<navit center="-112.14991 33.58280" zoom="256" tracking="1" orientation="-1" recent_dest="250" drag_bitmap="0" default_layout="Car">
<navit center="-112.15530 33.70606" zoom="64" tracking="1" orientation="0" recent_dest="250" drag_bitmap="0" default_layout="Car"
imperial="1"
>
<!-- Use one of gtk_drawing_area, qt_qpainter or sdl. On windows systems, use win32 -->
<graphics type="gtk_drawing_area"/>
@@ -57,7 +58,7 @@
Options include internal (optimized for touch screen devices), gtk (useful for desktop computers).
If you don't like the internal gui, set enabled=yes for the following tag and enabled=no for the gui internal tag
-->
<gui type="gtk" enabled="yes" menubar="1" toolbar="1" statusbar="1"/>
<gui type="gtk" enabled="no" menubar="1" toolbar="1" statusbar="1"/>
<!--
In case of the internal GUI, you can even influence the size of the text and of the icons in the toolbar and the viewport.
Here's an example for a freerunner:
@@ -68,7 +69,7 @@
The action that appears on map click is configurable with the attribute "on_map_click".
To get the previous behaviour of showing the map point menu use on_map_click='menu("#Map Point")'
-->
<gui type="internal" enabled="no"><![CDATA[
<gui type="internal" enabled="yes" fullscreen="1" font_size="250" icon_xs="48" icon_s="48" icon_l="192"><![CDATA[
<html>
<a name='Main Menu'><text>Main menu</text>
<a href='#Actions'><img src='gui_actions'>Actions</img></a>
@@ -405,7 +406,11 @@ Waypoint</text></img>
If you have a speech synthesizer like festival lite installed, you can get turn by turn directions out of navit. Please set the "cps"-value to how many characters your tts engine approximately speaks per second.
The default is text output to the shell
-->
<!--
<speech type="cmdline" data="echo 'Fix the speech tag in navit.xml to let navit say:' '%s'" cps="15"/>
-->
<speech type="cmdline" data="espeak -s 150 %s"/>
<!--
Instead of using a speech synthesizer, navit can also play pre-recorded samples for each word.
See http://wiki.navit-project.org/index.php/Configuration for details.
@@ -434,7 +439,7 @@ Waypoint</text></img>
<!-- Mapset template for OpenStreetMap -->
<mapset enabled="yes">
<map type="binfile" enabled="yes" data="~/.navit/maps/arizona.bin"/>
<map type="binfile" enabled="yes" data="~/.navit/maps/et_default.bin"/>
</mapset>
<!-- Mapset template for garmin maps -->
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,126 @@
#!/bin/bash
# This script automatically converts the rgb colors used for the layers in
# navit_layout_car_shipped.xml to the values appropriate for the dark layout in
# navit_layout_car_dark_shipped.xml.
# It's a bit of a mess, but gets the job done.
# Variables
textcolor='55c4bd'
# Settings
IFS='' # Keep whitespace
# Light and dark input files
ifl=navit_layout_car_shipped.xml
ifd=navit_layout_car_dark_shipped.xml
# Temporary dark output file
ofd=$ifd.new
# Iterate over all layers in dark input file
grep \<layer\ name=\" $ifd | cut -d\" -f2 | while read -r layer
do
echo $layer
# Create new temporary dark output file
[ -f $ofd ] && rm -f $ofd
touch $ofd
# Init: not in layer
inlayer=false
getlayer=false
# Read dark input file
while read -r l
do
# Check to see if inside layer - open tag
if [[ $l =~ .*\<layer\ name=\"$layer\"\>.* ]]; then
inlayer=true
getlayer=true
fi
# Check to see if inside layer - close tag
if [[ $l =~ .*\</layer\>.* ]]; then
inlayer=false
fi
# Trigger once when open tag found in dark input file
if [ $getlayer == true ]; then
getlayer=false # Just triggered
inlayer=false # Now used for light input file
# Insert data from light input file
while read -r l
do
# Check to see if inside layer - open tag
if [[ $l =~ .*\<layer\ name=\"$layer\"\>.* ]]; then
inlayer=true
fi
# Check to see if inside layer - close tag
if [[ $l =~ .*\</layer\>.* ]]; then
inlayer=false
fi
# Inside layer
if [ $inlayer == true ]; then
# Modify color
if [[ $l =~ .*color=\"#[0-9a-fA-F]{6}.* ]]; then # Contains rgb(a) color
# Get hexadecimal color
coll=$(echo $l | cut -d# -f2 | cut -c-6)
# Get color values in decimal
cr=$(printf "%d" 0x${coll:0:2})
cg=$(printf "%d" 0x${coll:2:2})
cb=$(printf "%d" 0x${coll:4:2})
# Modify decimal color values
crn=$(echo $cr/16+$cg/32+$cb/32+16 | bc)
cgn=$(echo $cr/24+$cg/12+$cb/24+12 | bc)
cbn=$(echo $cr/16+$cg/16+$cb/ 8+ 8 | bc)
# Convert new decimal color values to hexadecimal
cold=$( printf '%02x' $crn)
cold=$cold$(printf '%02x' $cgn)
cold=$cold$(printf '%02x' $cbn)
# Replace old color with new hexadecimal color values
l=$(echo $l | sed "s/#$coll/#$cold/")
fi
# Miscellaneous modifications
l=$(echo $l | sed -r "s/_bk\./_wh\./") # Black to white icons
l=$(echo $l | sed -r "s/(<text )/\1color=\"#$textcolor\" background_color=\"#000000\" /") # Add text color
l=$(echo $l | sed -r "s/(<circle color=\"#[0-9a-fA-F]{6,8}\" )/\1background_color=\"#$textcolor\" /") # Add circle bg color
echo $l >> $ofd # Modified line from light input file to dark output file
fi
done < $ifl # Read light input file
inlayer=true # Done inserting, still in layer in dark input file
else
# Outside layer
if [ $inlayer == false ]; then
echo $l >> $ofd # Just copy as-is to dark output file
fi
fi
done < $ifd # Read dark input file
cp $ofd $ifd # Replace
rm -f $ofd # Clean up
done # Next layer in dark input file
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,122 @@
<?xml version="1.0"?>
<layout xmlns:xi="http://www.w3.org/2001/XInclude" name="Car-simple" icon_w="22" icon_h="22" color="#839ea9">
<layer name="polygon">
<itemgra item_types="poly_town" order="8-">
<polygon color="#6b8091"/>
</itemgra>
</layer>
<layer name="streets">
<itemgra item_types="water_line" order="11-">
<polyline width="3" color="#5e71a7"/>
</itemgra>
<itemgra item_types="rail" order="9-">
<polyline width="4" color="#a4bac8"/>
<polyline width="1" color="#e0e0e0" dash="4,6"/>
</itemgra>
<itemgra item_types="street_1_city,street_1_land" order="12-">
<polyline width="5" color="#516170"/>
</itemgra>
<itemgra item_types="street_2_city,street_2_land" order="12-">
<polyline width="7" color="#516170"/>
</itemgra>
<itemgra item_types="street_1_city,street_1_land" order="11">
<polyline width="3" color="#516170"/>
</itemgra>
<itemgra item_types="street_2_city,street_2_land" order="9-11">
<polyline width="5" color="#516170"/>
</itemgra>
<itemgra item_types="street_3_city,street_3_land,ramp" order="11-">
<polyline width="9" color="#516170"/>
</itemgra>
<itemgra item_types="street_3_city,street_3_land,ramp" order="8-10">
<polyline width="7" color="#516170"/>
</itemgra>
<itemgra item_types="street_4_city,street_4_land,street_n_lanes" order="11-">
<polyline width="9" color="#516170"/>
</itemgra>
<itemgra item_types="street_4_city,street_4_land,street_n_lanes" order="8-10">
<polyline width="7" color="#516170"/>
</itemgra>
<itemgra item_types="street_4_city,street_4_land,street_n_lanes" order="6-7">
<polyline width="3" color="#516170"/>
</itemgra>
<itemgra item_types="highway_city,highway_land" order="4-">
<polyline width="9" color="#516170"/>
</itemgra>
<itemgra item_types="street_route">
<polyline width="11" color="#516170"/>
</itemgra>
<itemgra item_types="street_1_city,street_1_land" order="12-">
<polyline width="3" color="#a4bac8"/>
</itemgra>
<itemgra item_types="street_2_city,street_2_land" order="12-">
<polyline width="5" color="#90a3af"/>
</itemgra>
<itemgra item_types="street_1_city,street_1_land" order="11">
<polyline width="1" color="#a4bac8"/>
</itemgra>
<itemgra item_types="street_2_city,street_2_land" order="9-11">
<polyline width="3" color="#90a3af"/>
</itemgra>
<itemgra item_types="street_3_city,street_3_land,ramp" order="11-">
<polyline width="6" color="#a4bac8"/>
</itemgra>
<itemgra item_types="street_3_city,street_3_land,ramp" order="8-10">
<polyline width="4" color="#a4bac8"/>
</itemgra>
<itemgra item_types="street_4_city,street_4_land,street_n_lanes" order="11-">
<polyline width="6" color="#c7e1f2"/>
</itemgra>
<itemgra item_types="street_4_city,street_4_land,street_n_lanes" order="8-10">
<polyline width="4" color="#c7e1f2"/>
</itemgra>
<itemgra item_types="street_4_city,street_4_land,street_n_lanes" order="6-7">
<polyline width="1" color="#c7e1f2"/>
</itemgra>
<itemgra item_types="highway_city,highway_land" order="4-">
<polyline width="3" color="#c0e1ff"/>
</itemgra>
<itemgra item_types="street_route">
<polyline width="9" color="#ffffff"/>
</itemgra>
<itemgra item_types="waypoint,route_end">
<circle color="#000000" radius="8" width="2" text_size="24"/>
</itemgra>
</layer>
<layer name="labels">
<itemgra item_types="water_line" order="11-">
<text text_size="16" color="#0000ff"/>
</itemgra>
<itemgra item_types="street_1_city,street_2_city,street_3_city,street_4_city,highway_city,street_1_land,street_2_land,street_3_land,street_4_land,street_n_lanes,highway_land,living_street,footway">
<text text_size="16" color="#ffffff" background_color="#000000"/>
</itemgra>
<itemgra item_types="town_label,district_label,town_label_0e0,town_label_1e0,town_label_2e0,town_label_5e0,town_label_1e1,town_label_2e1,town_label_5e1,town_label_1e2,town_label_2e2,town_label_5e2,district_label_0e0,district_label_1e0,district_label_2e0,district_label_5e0,district_label_1e1,district_label_2e1,district_label_5e1,district_label_1e2,district_label_2e2,district_label_5e2" order="10-">
<circle radius="3" text_size="16" color="#ffffff" background_color="#000000"/>
</itemgra>
<itemgra item_types="town_label_1e3,town_label_2e3,district_label_1e3,district_label_2e3" order="9-">
<circle radius="3" text_size="16" color="#ffffff" background_color="#000000"/>
</itemgra>
<itemgra item_types="town_label_5e3,district_label_5e3" order="8-">
<circle radius="3" text_size="16" color="#ffffff" background_color="#000000"/>
</itemgra>
<itemgra item_types="town_label_1e4,district_label_1e4" order="7-">
<circle radius="3" text_size="16" color="#ffffff" background_color="#000000"/>
</itemgra>
<itemgra item_types="town_label_2e4,district_label_2e4" order="6-">
<circle radius="3" text_size="16" color="#ffffff" background_color="#000000"/>
</itemgra>
<itemgra item_types="town_label_5e4,town_label_1e5,district_label_5e4,district_label_1e5" order="5-">
<circle radius="3" text_size="16" color="#ffffff" background_color="#000000"/>
</itemgra>
<itemgra item_types="town_label_2e5,district_label_2e5" order="4-">
<circle radius="3" text_size="16" color="#ffffff" background_color="#000000"/>
</itemgra>
<itemgra item_types="town_label_5e5,district_label_5e5" order="2-">
<circle radius="3" text_size="16" color="#ffffff" background_color="#000000"/>
</itemgra>
<itemgra item_types="town_label_1e6,town_label_2e6,town_label_5e6,town_label_1e7,district_label_1e6,district_label_2e6,district_label_5e6,district_label_1e7">
<circle radius="3" text_size="16" color="#ffffff" background_color="#000000"/>
</itemgra>
</layer>
<layer name="Found items" ref="Found items"/>
</layout>
@@ -0,0 +1,551 @@
<?xml version="1.0"?>
<layout xmlns:xi="http://www.w3.org/2001/XInclude" name="T@H" icon_w="22" icon_h="22" font="Liberation Sans">
<cursor w="26" h="26">
<itemgra>
<circle color="#0000ff" radius="24" width="2">
<coord x="0" y="0"/>
</circle>
</itemgra>
<itemgra speed_range="-2">
<polyline color="#0000ff" width="2">
<coord x="0" y="0"/>
<coord x="0" y="0"/>
</polyline>
</itemgra>
<itemgra speed_range="3-">
<polyline color="#0000ff" width="2">
<coord x="-7" y="-10"/>
<coord x="0" y="12"/>
<coord x="7" y="-10"/>
</polyline>
</itemgra>
</cursor>
<layer name="sea" details="0">
<!-- landuse=forest -->
<itemgra item_types="poly_wood" order="0-">
<polygon color="#72bf81"/>
</itemgra>
<itemgra item_types="poly_flats,poly_scrub,poly_military_zone,poly_marine,plantation,tundra" order="0-">
<polygon color="#a0a0a0"/>
<text text_size="5"/>
</itemgra>
<!-- landuse=residential -->
<itemgra item_types="poly_town" order="0-">
<polygon color="#f2f2f2"/>
</itemgra>
<!-- natural=water -->
<itemgra item_types="poly_water,poly_basin,poly_reservoir" order="0-">
<polygon color="#b5d6f1"/>
<polyline color="#b5d6f1"/>
<text text_size="8"/>
</itemgra>
<itemgra item_types="poly_swimming_pool" order="10-">
<polygon color="#b5d6f1"/>
<polyline color="#b5d6f1"/>
</itemgra>
<itemgra item_types="poly_water_tiled" order="0-">
<polygon color="#b5d6f1"/>
</itemgra>
<!-- leisure=park -->
<itemgra item_types="poly_park" order="0-">
<polygon color="#c7f1a3"/>
<polyline color="#79c691"/>
<text text_size="5"/>
</itemgra>
<itemgra item_types="poly_airport" order="0-">
<polygon color="#a0a0a0"/>
</itemgra>
<itemgra item_types="poly_sport" order="0-">
<polygon color="#4af04f"/>
</itemgra>
<!-- landuse=industrial -->
<itemgra item_types="poly_industry,poly_building,poly_place" order="0-">
<polygon color="#ecd8ff"/>
</itemgra>
<!-- waterway=stream -->
<itemgra item_types="water_line" order="0-4">
<polyline color="#b5d6f1" width="1"/>
<text text_size="8"/>
</itemgra>
<!-- railway=subway -->
<itemgra item_types="rail" order="6">
<polyline color="#aaaaaa" width="1"/>
</itemgra>
<itemgra item_types="rail" order="7-8">
<polyline color="#aaaaaa" width="2"/>
</itemgra>
<itemgra item_types="rail" order="9-">
<polyline color="#aaaaaa" width="6"/>
</itemgra>
<itemgra item_types="ferry" order="5-">
<polyline color="#000000" width="1"/>
</itemgra>
<itemgra item_types="border_country" order="0-">
<polyline color="#b8434e" width="1"/>
</itemgra>
<itemgra item_types="border_state" order="0-">
<polyline color="#808080" width="1"/>
</itemgra>
<itemgra item_types="height_line_1" order="0-">
<polyline color="#000000" width="1"/>
</itemgra>
<itemgra item_types="height_line_2" order="0-">
<polyline color="#000000" width="2"/>
</itemgra>
<!-- routing -->
<itemgra item_types="street_route" order="2">
<polyline color="#0000a0" width="4"/>
</itemgra>
<itemgra item_types="street_route" order="3-5">
<polyline color="#0000a0" width="8"/>
</itemgra>
<itemgra item_types="street_route" order="6">
<polyline color="#0000a0" width="10"/>
</itemgra>
<itemgra item_types="street_route" order="7-8">
<polyline color="#0000a0" width="16"/>
</itemgra>
<itemgra item_types="street_route" order="9-10">
<polyline color="#0000a0" width="20"/>
</itemgra>
<itemgra item_types="street_route" order="11">
<polyline color="#0000a0" width="28"/>
</itemgra>
<itemgra item_types="street_route" order="12">
<polyline color="#0000a0" width="32"/>
</itemgra>
<itemgra item_types="street_route" order="13">
<polyline color="#0000a0" width="52"/>
</itemgra>
<itemgra item_types="street_route" order="14">
<polyline color="#0000a0" width="64"/>
</itemgra>
<itemgra item_types="street_route" order="15">
<polyline color="#0000a0" width="68"/>
</itemgra>
<itemgra item_types="street_route" order="16">
<polyline color="#0000a0" width="132"/>
</itemgra>
<itemgra item_types="street_route" order="17">
<polyline color="#0000a0" width="268"/>
</itemgra>
<itemgra item_types="street_route" order="18">
<polyline color="#0000a0" width="530"/>
</itemgra>
<!-- highway=service,footway, ,... -->
<itemgra item_types="street_pedestrian,living_street" order="10">
<polyline color="#d2d2d2" width="3"/>
<polyline color="#dddddd" width="1"/>
</itemgra>
<itemgra item_types="street_pedestrian,living_street" order="11">
<polyline color="#d2d2d2" width="5"/>
<polyline color="#dddddd" width="3"/>
</itemgra>
<itemgra item_types="street_pedestrian,living_street" order="12">
<polyline color="#d2d2d2" width="8"/>
<polyline color="#dddddd" width="6"/>
</itemgra>
<itemgra item_types="street_pedestrian,living_street" order="13">
<polyline color="#d2d2d2" width="9"/>
<polyline color="#dddddd" width="7"/>
</itemgra>
<itemgra item_types="street_pedestrian,living_street" order="14">
<polyline color="#d2d2d2" width="13"/>
<polyline color="#dddddd" width="9"/>
</itemgra>
<itemgra item_types="street_pedestrian,living_street" order="15">
<polyline color="#d2d2d2" width="18"/>
<polyline color="#dddddd" width="14"/>
</itemgra>
<itemgra item_types="street_pedestrian,living_street" order="16">
<polyline color="#d2d2d2" width="21"/>
<polyline color="#dddddd" width="17"/>
</itemgra>
<itemgra item_types="street_pedestrian,living_street" order="17">
<polyline color="#d2d2d2" width="25"/>
<polyline color="#dddddd" width="21"/>
</itemgra>
<itemgra item_types="street_pedestrian,living_street" order="18">
<polyline color="#d2d2d2" width="40"/>
<polyline color="#dddddd" width="34"/>
</itemgra>
<itemgra item_types="street_nopass" order="10">
<polyline color="#efeaa0" width="1"/>
</itemgra>
<itemgra item_types="street_nopass" order="11-12">
<polyline color="#efeaa0" width="2"/>
</itemgra>
<itemgra item_types="street_nopass" order="13-">
<polyline color="#efeaa0" width="4"/>
</itemgra>
<itemgra item_types="street_0,street_1_city,street_1_land" order="10">
<polyline color="#d2d2d2" width="4"/>
<polyline color="#ffffff" width="2"/>
</itemgra>
<itemgra item_types="street_0,street_1_city,street_1_land" order="11">
<polyline color="#d2d2d2" width="6"/>
<polyline color="#ffffff" width="4"/>
</itemgra>
<itemgra item_types="street_0,street_1_city,street_1_land" order="12">
<polyline color="#d2d2d2" width="10"/>
<polyline color="#ffffff" width="8"/>
</itemgra>
<itemgra item_types="street_0,street_1_city,street_1_land" order="13">
<polyline color="#d2d2d2" width="12"/>
<polyline color="#ffffff" width="9"/>
</itemgra>
<itemgra item_types="street_0,street_1_city,street_1_land" order="14">
<polyline color="#d2d2d2" width="15"/>
<polyline color="#ffffff" width="13"/>
</itemgra>
<itemgra item_types="street_0,street_1_city,street_1_land" order="15">
<polyline color="#d2d2d2" width="17"/>
<polyline color="#ffffff" width="14"/>
</itemgra>
<itemgra item_types="street_0,street_1_city,street_1_land" order="16">
<polyline color="#d2d2d2" width="33"/>
<polyline color="#ffffff" width="26"/>
</itemgra>
<itemgra item_types="street_0,street_1_city,street_1_land" order="17">
<polyline color="#d2d2d2" width="69"/>
<polyline color="#ffffff" width="61"/>
</itemgra>
<itemgra item_types="street_0,street_1_city,street_1_land" order="18">
<polyline color="#d2d2d2" width="132"/>
<polyline color="#ffffff" width="126"/>
</itemgra>
<!-- highway=tertiary -->
<itemgra item_types="street_2_city,street_2_land" order="7-8">
<polyline color="#c4c4c4" width="2"/>
</itemgra>
<itemgra item_types="street_2_city,street_2_land" order="9">
<polyline color="#c4c4c4" width="4"/>
<polyline color="#f7f496" width="2"/>
</itemgra>
<itemgra item_types="street_2_city,street_2_land" order="10">
<polyline color="#c4c4c4" width="6"/>
<polyline color="#f7f496" width="4"/>
</itemgra>
<itemgra item_types="street_2_city,street_2_land" order="11">
<polyline color="#c4c4c4" width="8"/>
<polyline color="#f7f496" width="6"/>
</itemgra>
<itemgra item_types="street_2_city,street_2_land" order="12">
<polyline color="#c4c4c4" width="12"/>
<polyline color="#f7f496" width="9"/>
</itemgra>
<itemgra item_types="street_2_city,street_2_land" order="13">
<polyline color="#c4c4c4" width="15"/>
<polyline color="#f7f496" width="11"/>
</itemgra>
<itemgra item_types="street_2_city,street_2_land" order="14">
<polyline color="#c4c4c4" width="18"/>
<polyline color="#f7f496" width="14"/>
</itemgra>
<itemgra item_types="street_2_city,street_2_land" order="15">
<polyline color="#c4c4c4" width="21"/>
<polyline color="#f7f496" width="17"/>
</itemgra>
<itemgra item_types="street_2_city,street_2_land" order="16">
<polyline color="#c4c4c4" width="35"/>
<polyline color="#f7f496" width="30"/>
</itemgra>
<itemgra item_types="street_2_city,street_2_land" order="17">
<polyline color="#c4c4c4" width="73"/>
<polyline color="#f7f496" width="67"/>
</itemgra>
<itemgra item_types="street_2_city,street_2_land" order="18">
<polyline color="#c4c4c4" width="144"/>
<polyline color="#f7f496" width="138"/>
</itemgra>
<!-- highway=secondary -->
<itemgra item_types="street_3_city,street_3_land,ramp" order="7">
<polyline color="#fdbf6f" width="1"/>
</itemgra>
<itemgra item_types="street_3_city,street_3_land,ramp" order="8">
<polyline color="#000000" width="2"/>
<polyline color="#fdbf6f" width="1"/>
</itemgra>
<itemgra item_types="street_3_city,street_3_land,ramp" order="9">
<polyline color="#000000" width="5"/>
<polyline color="#fdbf6f" width="3"/>
</itemgra>
<itemgra item_types="street_3_city,street_3_land,ramp" order="10">
<polyline color="#000000" width="8"/>
<polyline color="#fdbf6f" width="6"/>
</itemgra>
<itemgra item_types="street_3_city,street_3_land,ramp" order="11">
<polyline color="#000000" width="9"/>
<polyline color="#fdbf6f" width="7"/>
</itemgra>
<itemgra item_types="street_3_city,street_3_land,ramp" order="12">
<polyline color="#000000" width="11"/>
<polyline color="#fdbf6f" width="9"/>
</itemgra>
<itemgra item_types="street_3_city,street_3_land,ramp" order="13">
<polyline color="#000000" width="16"/>
<polyline color="#fdbf6f" width="14"/>
</itemgra>
<itemgra item_types="street_3_city,street_3_land,ramp" order="14">
<polyline color="#000000" width="19"/>
<polyline color="#fdbf6f" width="17"/>
</itemgra>
<itemgra item_types="street_3_city,street_3_land,ramp" order="15">
<polyline color="#000000" width="23"/>
<polyline color="#fdbf6f" width="21"/>
</itemgra>
<itemgra item_types="street_3_city,street_3_land,ramp" order="16">
<polyline color="#000000" width="36"/>
<polyline color="#fdbf6f" width="34"/>
</itemgra>
<itemgra item_types="street_3_city,street_3_land,ramp" order="17">
<polyline color="#000000" width="75"/>
<polyline color="#fdbf6f" width="73"/>
</itemgra>
<itemgra item_types="street_3_city,street_3_land,ramp" order="18">
<polyline color="#000000" width="152"/>
<polyline color="#fdbf6f" width="150"/>
</itemgra>
<!-- highway=primary -->
<itemgra item_types="street_4_city,street_4_land,street_n_lanes" order="2-6">
<polyline color="#e46d71" width="1"/>
</itemgra>
<itemgra item_types="street_4_city,street_4_land,street_n_lanes" order="7-8">
<polyline color="#e46d71" width="3"/>
<polyline color="#e46d71" width="1"/>
</itemgra>
<itemgra item_types="street_4_city,street_4_land,street_n_lanes" order="9">
<polyline color="#e46d71" width="5"/>
<polyline color="#e46d71" width="3"/>
</itemgra>
<itemgra item_types="street_4_city,street_4_land,street_n_lanes" order="10">
<polyline color="#e46d71" width="6"/>
<polyline color="#e46d71" width="4"/>
</itemgra>
<itemgra item_types="street_4_city,street_4_land,street_n_lanes" order="11">
<polyline color="#e46d71" width="9"/>
<polyline color="#e46d71" width="7"/>
</itemgra>
<itemgra item_types="street_4_city,street_4_land,street_n_lanes" order="12">
<polyline color="#e46d71" width="13"/>
<polyline color="#e46d71" width="9"/>
</itemgra>
<itemgra item_types="street_4_city,street_4_land,street_n_lanes" order="13">
<polyline color="#e46d71" width="18"/>
<polyline color="#e46d71" width="14"/>
</itemgra>
<itemgra item_types="street_4_city,street_4_land,street_n_lanes" order="14">
<polyline color="#e46d71" width="21"/>
<polyline color="#e46d71" width="17"/>
</itemgra>
<itemgra item_types="street_4_city,street_4_land,street_n_lanes" order="15">
<polyline color="#e46d71" width="24"/>
<polyline color="#e46d71" width="20"/>
</itemgra>
<itemgra item_types="street_4_city,street_4_land,street_n_lanes" order="16">
<polyline color="#e46d71" width="39"/>
<polyline color="#e46d71" width="33"/>
</itemgra>
<itemgra item_types="street_4_city,street_4_land,street_n_lanes" order="17">
<polyline color="#e46d71" width="78"/>
<polyline color="#e46d71" width="72"/>
</itemgra>
<itemgra item_types="street_4_city,street_4_land,street_n_lanes" order="18">
<polyline color="#e46d71" width="156"/>
<polyline color="#e46d71" width="150"/>
</itemgra>
<!-- highway=motorway -->
<itemgra item_types="highway_city,highway_land" order="2">
<polyline color="#809bc0" width="1"/>
</itemgra>
<itemgra item_types="highway_city,highway_land" order="3-5">
<polyline color="#87908a" width="3"/>
<polyline color="#809bc0" width="1"/>
</itemgra>
<itemgra item_types="highway_city,highway_land" order="6">
<polyline color="#87908a" width="4"/>
<polyline color="#809bc0" width="2"/>
</itemgra>
<itemgra item_types="highway_city,highway_land" order="7-8">
<polyline color="#87908a" width="7"/>
<polyline color="#809bc0" width="5"/>
<polyline color="#809bc0" width="1"/>
</itemgra>
<itemgra item_types="highway_city,highway_land" order="9-10">
<polyline color="#87908a" width="9"/>
<polyline color="#809bc0" width="5"/>
<polyline color="#809bc0" width="1"/>
</itemgra>
<itemgra item_types="highway_city,highway_land" order="11">
<polyline color="#87908a" width="13"/>
<polyline color="#809bc0" width="9"/>
<polyline color="#809bc0" width="1"/>
</itemgra>
<itemgra item_types="highway_city,highway_land" order="12">
<polyline color="#87908a" width="15"/>
<polyline color="#809bc0" width="10"/>
<polyline color="#809bc0" width="1"/>
</itemgra>
<itemgra item_types="highway_city,highway_land" order="13">
<polyline color="#87908a" width="25"/>
<polyline color="#809bc0" width="17"/>
<polyline color="#809bc0" width="1"/>
</itemgra>
<itemgra item_types="highway_city,highway_land" order="14">
<polyline color="#87908a" width="31"/>
<polyline color="#809bc0" width="24"/>
<polyline color="#809bc0" width="1"/>
</itemgra>
<itemgra item_types="highway_city,highway_land" order="15">
<polyline color="#87908a" width="33"/>
<polyline color="#809bc0" width="27"/>
<polyline color="#809bc0" width="1"/>
</itemgra>
<itemgra item_types="highway_city,highway_land" order="16">
<polyline color="#87908a" width="65"/>
<polyline color="#809bc0" width="59"/>
<polyline color="#809bc0" width="1"/>
</itemgra>
<itemgra item_types="highway_city,highway_land" order="17">
<polyline color="#87908a" width="133"/>
<polyline color="#809bc0" width="127"/>
<polyline color="#809bc0" width="1"/>
</itemgra>
<itemgra item_types="highway_city,highway_land" order="18">
<polyline color="#87908a" width="264"/>
<polyline color="#809bc0" width="258"/>
<polyline color="#809bc0" width="1"/>
</itemgra>
<itemgra item_types="highway_exit_label" order="10-">
<circle color="#000000" radius="3" text_size="7"/>
</itemgra>
<!-- highway=primary (font)-->
<itemgra item_types="highway_city,highway_land,street_4_city,street_4_land,street_n_lanes,living_street" order="10-18">
<text text_size="9"/>
</itemgra>
<itemgra item_types="street_2_city,street_2_land,street_3_city,street_3_land,ramp" order="11-18">
<text text_size="9"/>
</itemgra>
<itemgra item_types="street_nopass,street_0,street_1_city,street_1_land,footway" order="12-18">
<text text_size="9"/>
</itemgra>
<!-- place=suburb -->
<itemgra item_types="town_label,district_label,town_label_0e0,town_label_1e0,town_label_2e0,town_label_5e0,town_label_1e1,town_label_2e1,town_label_5e1,town_label_1e2,town_label_2e2,town_label_5e2,district_label_0e0,district_label_1e0,district_label_2e0,district_label_5e0,district_label_1e1,district_label_2e1,district_label_5e1,district_label_1e2,district_label_2e2,district_label_5e2" order="9-">
<circle color="#000000" radius="3" text_size="9"/>
</itemgra>
<itemgra item_types="district_label_1e3,district_label_2e3,district_label_5e3" order="11-">
<circle color="#000000" radius="3" text_size="7"/>
</itemgra>
<itemgra item_types="town_label_1e3,town_label_2e3,town_label_5e3,place_label" order="10-">
<circle color="#000000" radius="3" text_size="7"/>
</itemgra>
<itemgra item_types="district_label_1e4,district_label_2e4,district_label_5e4" order="9-">
<circle color="#000000" radius="3" text_size="7"/>
</itemgra>
<itemgra item_types="town_label_1e4,town_label_2e4,town_label_5e4" order="8-">
<circle color="#000000" radius="3" text_size="7"/>
</itemgra>
<itemgra item_types="district_label_1e5,district_label_2e5,district_label_5e5" order="6-">
<circle color="#000000" radius="3" text_size="10"/>
</itemgra>
<!-- place=city -->
<itemgra item_types="town_label_1e5,town_label_2e5,town_label_5e5" order="4-">
<circle color="#000000" radius="3" text_size="15"/>
</itemgra>
<itemgra item_types="district_label_1e6,district_label_2e6,district_label_5e6" order="3-">
<circle color="#000000" radius="3" text_size="15"/>
</itemgra>
<itemgra item_types="town_label_1e6,town_label_2e6,town_label_5e6" order="2-">
<circle color="#000000" radius="3" text_size="15"/>
</itemgra>
<itemgra item_types="town_label_1e7,district_label_1e7" order="1-">
<circle color="#000000" radius="3" text_size="15"/>
</itemgra>
<itemgra item_types="rg_point" order="0-">
<circle color="#FF089C" radius="10"/>
</itemgra>
<itemgra item_types="waypoint,route_end" order="2">
<circle color="#008080" radius="4" width="2" text_size="24"/>
</itemgra>
<itemgra item_types="waypoint,route_end" order="3-5">
<circle color="#008080" radius="8" width="2" text_size="24"/>
</itemgra>
<itemgra item_types="waypoint,route_end" order="6">
<circle color="#008080" radius="10" width="2" text_size="24"/>
</itemgra>
<itemgra item_types="waypoint,route_end" order="7-8">
<circle color="#008080" radius="16" width="2" text_size="24"/>
</itemgra>
<itemgra item_types="waypoint,route_end" order="9-10">
<circle color="#008080" radius="20" width="4" text_size="32"/>
</itemgra>
<itemgra item_types="waypoint,route_end" order="11">
<circle color="#008080" radius="28" width="4" text_size="32"/>
</itemgra>
<itemgra item_types="waypoint,route_end" order="12">
<circle color="#008080" radius="32" width="4" text_size="32"/>
</itemgra>
<itemgra item_types="waypoint,route_end" order="13">
<circle color="#008080" radius="52" width="4" text_size="24"/>
</itemgra>
<itemgra item_types="waypoint,route_end" order="14">
<circle color="#008080" radius="64" width="4" text_size="24"/>
</itemgra>
<itemgra item_types="waypoint,route_end" order="15">
<circle color="#008080" radius="68" width="6" text_size="24"/>
</itemgra>
<itemgra item_types="waypoint,route_end" order="16">
<circle color="#008080" radius="132" width="8" text_size="32"/>
</itemgra>
<itemgra item_types="waypoint,route_end" order="17">
<circle color="#008080" radius="268" width="8" text_size="48"/>
</itemgra>
<itemgra item_types="waypoint,route_end" order="18">
<circle color="#008080" radius="530" width="8" text_size="48"/>
</itemgra>
<!-- !!!!...POIs...!!!! -->
<!-- amenity=bank -->
<itemgra item_types="poi_bank" order="14-">
<icon src="bank.png"/>
<circle color="#000000" radius="3" text_size="7"/>
</itemgra>
<itemgra item_types="poi_atm" order="12-">
<icon src="atm.png"/>
</itemgra>
<!-- amenity=fuel -->
<itemgra item_types="poi_fuel" order="14-">
<icon src="fuel.png"/>
<circle color="#000000" radius="3" text_size="7"/>
</itemgra>
<!-- amenity=hospitalg -->
<itemgra item_types="poi_hospital" order="14-">
<icon src="hospital.png"/>
<circle color="#000000" radius="3" text_size="7"/>
</itemgra>
<!-- amenity=parking -->
<itemgra item_types="poi_car_parking" order="14-">
<icon src="parking.png"/>
</itemgra>
<!-- amenity=police -->
<itemgra item_types="poi_police" order="14-">
<icon src="police.png"/>
<circle color="#000000" radius="3" text_size="7"/>
</itemgra>
<!-- amenity=restaurant -->
<itemgra item_types="poi_restaurant" order="14-">
<icon src="restaurant.png"/>
<circle color="#000000" radius="3" text_size="7"/>
</itemgra>
<!-- leisure=golf_curse -->
<itemgra item_types="poi_golf" order="14-">
<icon src="golf.png"/>
<circle color="#000000" radius="3" text_size="7"/>
</itemgra>
<!-- tourism=hotel -->
<itemgra item_types="poi_hotel" order="14-">
<icon src="hotel.png"/>
<circle color="#000000" radius="3" text_size="7"/>
</itemgra>
</layer>
<layer name="Found items" ref="Found items"/>
</layout>
+8 -24
View File
@@ -1,38 +1,22 @@
#!/bin/bash
# Author : Gaston Gonzalez
# Date : 1 October 2024
# Updated : 2 OCtober 2024
# Purpose : Navit installer for EmComm Tools
# Category : Maps
#
# The Navit package is broken in the Ubuntu repository. The following installation is based
# on a fixed reported in https://github.com/navit-gps/navit/issues/1228
# navit-gui-internal required for car display
# navit-graphics-gtk-drawing-area required for desktop display
apt install \
navit \
navit-gui-gtk \
navit-graphics-gtk-drawing-area \
navit-gui-internal \
libcanberra-gtk-dev \
maptool \
espeak-ng \
espeak \
-y
missing_layout_files=(
"navit_layout_bike_shipped.xml"
"navit_layout_car_android_shipped.xml"
"navit_layout_car_dark_shipped.xml"
"navit_layout_car_generatedarkxml.sh"
"navit_layout_car_shipped.xml"
"navit_layout_car_simple_shipped.xml"
"navit_layout_th_shipped.xml"
)
echo "Patching broken Navit apt installation..."
TARGET_DIR=/usr/share/navit
for file in "${missing_layout_files[@]}"
do
curl -s -f -L -O https://raw.githubusercontent.com/navit-gps/navit/trunk/navit/${file}
mv -v ${file} "${TARGET_DIR}/${file}"
done
# Delete types that have errors
sed -i -e '/item_types="cliff,embankment"/,+7d' ${TARGET_DIR}/navit_layout_car_shipped.xml
# Copy arizona.bin to ~/.navit/maps