From 6cf08b8c16be0ffaab0ed8f7c0a9ba09542cc4b2 Mon Sep 17 00:00:00 2001 From: Stefan Wildemann Date: Fri, 29 May 2020 00:17:09 +0200 Subject: add:maptool:enhance leisure=track handling and add poi_archeaological_site (#1005) * add:map:add poi_archeaological_site. historic=archeaological_site is quite often used on nodes only. Add poi to show them. * add:map:deal with sports_track being poly or not OSM is unsure on leisure=track. It's either line style or area. the latter only if area=yes is given, or it's a multipolygon. This commit fixes that problem. * fix:layout:add line width for sports_track --- navit/icons/archaeological_site.svg | 14 ++++++++++++++ navit/item_def.h | 2 ++ navit/maptool/osm.c | 6 +++++- navit/navit_layout_car_shipped.xml | 9 ++++++++- 4 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 navit/icons/archaeological_site.svg diff --git a/navit/icons/archaeological_site.svg b/navit/icons/archaeological_site.svg new file mode 100644 index 000000000..19fc27283 --- /dev/null +++ b/navit/icons/archaeological_site.svg @@ -0,0 +1,14 @@ + + + + + image/svg+xml + + + + + + + + + diff --git a/navit/item_def.h b/navit/item_def.h index d5627bf5c..57bdb9a03 100644 --- a/navit/item_def.h +++ b/navit/item_def.h @@ -366,6 +366,7 @@ ITEM(nav_exit_right) ITEM(nav_keep_left) ITEM(nav_keep_right) ITEM(poi_cave) +ITEM(poi_archaeological_site) ITEM2(0x7fffffe0,poi_customg) ITEM(poi_customh) ITEM(poi_customi) @@ -526,6 +527,7 @@ ITEM(forest_way_4) ITEM(former_itinerary) ITEM(former_itinerary_part) ITEM(cliff) +ITEM(sports_track) /* Area */ ITEM2(0xc0000000,area) ITEM2(0xc0000001,area_unspecified) diff --git a/navit/maptool/osm.c b/navit/maptool/osm.c index ceff3d0b3..659c68706 100644 --- a/navit/maptool/osm.c +++ b/navit/maptool/osm.c @@ -491,6 +491,7 @@ static char *attrmap= { "? historic=memorial poi_memorial\n" "? historic=monument poi_monument\n" "? historic=ruins poi_ruins\n" + "n historic=archaeological_site poi_archaeological_site\n" // "? historic=* poi_ruins\n" "? landuse=cemetery poi_cemetery\n" "? leisure=fishing poi_fish\n" @@ -721,7 +722,10 @@ static char *attrmap= { "w leisure=playground poly_playground\n" "w leisure=sports_centre poly_sport\n" "w leisure=stadium poly_sports_stadium\n" - "w leisure=track poly_sports_track\n" + "w leisure=track,area=1 poly_sports_track\n" + "w leisure=track,area=0 sports_track\n" + "w leisure=track,type=multipolygon poly_sports_track\n" + "w leisure=track sports_track\n" "w leisure=water_park poly_water_park\n" "w military=airfield poly_airfield\n" "w military=barracks poly_barracks\n" diff --git a/navit/navit_layout_car_shipped.xml b/navit/navit_layout_car_shipped.xml index fafc909e3..028714af8 100644 --- a/navit/navit_layout_car_shipped.xml +++ b/navit/navit_layout_car_shipped.xml @@ -448,6 +448,10 @@ + + + + @@ -2035,6 +2039,9 @@ + + + @@ -2064,7 +2071,7 @@ - + -- cgit v1.2.1