diff options
| author | Stefan Wildemann <gta04@metalstrolche.de> | 2020-06-15 20:46:55 +0200 |
|---|---|---|
| committer | Stefan Wildemann <gta04@metalstrolche.de> | 2020-06-15 20:46:55 +0200 |
| commit | 7876db5960d8ec5c8f6d97568bf2698b27bbcae1 (patch) | |
| tree | 35b59c438ebe011d0f4581127c992e538479dd09 | |
| parent | fc1eb32667f577e60fc7fbbc8fa718b01f212c71 (diff) | |
| download | navit-7876db5960d8ec5c8f6d97568bf2698b27bbcae1.tar.gz | |
Fix:maptool:treat archaeological_site limes special
archaeological_site tag is used on way despite outruled by OSM wiki on
limes archaeological site. But there is a special tagging scheme for
Limes. Use that to fix rendering of Limes in map.
| -rw-r--r-- | navit/item_def.h | 1 | ||||
| -rw-r--r-- | navit/maptool/osm.c | 4 | ||||
| -rw-r--r-- | navit/navit_layout_car_shipped.xml | 4 |
3 files changed, 9 insertions, 0 deletions
diff --git a/navit/item_def.h b/navit/item_def.h index b82d1907d..82f49d2a0 100644 --- a/navit/item_def.h +++ b/navit/item_def.h @@ -528,6 +528,7 @@ ITEM(former_itinerary) ITEM(former_itinerary_part) ITEM(cliff) ITEM(sports_track) +ITEM(archaeological_site) /* Area */ ITEM2(0xc0000000,area) ITEM2(0xc0000001,area_unspecified) diff --git a/navit/maptool/osm.c b/navit/maptool/osm.c index 1f76adbec..d78c2a7a1 100644 --- a/navit/maptool/osm.c +++ b/navit/maptool/osm.c @@ -678,6 +678,10 @@ static char *attrmap= { "w highway=unsurfaced track_gravelled\n" "w highway=steps steps\n" "w historic=archaeological_site poly_archaeological_site\n" + /* Albeit historic=archaeological_site should not be used on ways (only on areas) according to OSM wiki, + * it is at least done so for the Limes in germany. Luckily we can sort the Limes out as it has it's own + * tag scheme.*/ + "w historic=archaeological_site,site_type=fortification,fortification_type=limes archaeological_site\n" "w historic=battlefield poly_battlefield\n" "w historic=ruins poly_ruins\n" "w historic=town_gate poly_building\n" diff --git a/navit/navit_layout_car_shipped.xml b/navit/navit_layout_car_shipped.xml index d8054e250..81e9a3980 100644 --- a/navit/navit_layout_car_shipped.xml +++ b/navit/navit_layout_car_shipped.xml @@ -456,6 +456,10 @@ <polygon color="#deddcc"/> <text text_size="5"/> </itemgra> + <itemgra item_types="archaeological_site" order="8-"> + <polyline color="#d9cfb6" width="3"/> + <text text_size="8"/> + </itemgra> <itemgra item_types="poly_building" order="0-"> <polygon color="#aaaaaa"/> <polyline color="#777777"/> |
