diff --git a/index.json b/index.json index be443ad..85c4991 100644 --- a/index.json +++ b/index.json @@ -252,6 +252,9 @@ "hu": "Infrastruktúra" }, "subCategories": [ + { + "id": "roads" + }, { "id": "agriculture" }, diff --git a/lang/en.json b/lang/en.json index a774cf2..47f78ac 100644 --- a/lang/en.json +++ b/lang/en.json @@ -69,6 +69,7 @@ "category:renewables": "Renewables", "category:residential": "Residential Areas", "category:resources": "Resource Extraction", + "category:roads": "Roads", "category:services": "Services", "category:shop": "Shopping", "category:special": "Special", diff --git a/roads.json b/roads.json new file mode 100644 index 0000000..8b3b820 --- /dev/null +++ b/roads.json @@ -0,0 +1,108 @@ +{ + "type": "overpass", + "query": { + "10": "way[highway~'^(motorway|trunk)']", + "12": "way[highway~'^(motorway|trunk|primary)']", + "13": "way[highway~'^(motorway|trunk|primary|secondary)']", + "14": "way[highway~'^(motorway|trunk|primary|secondary|tertiary)']", + "15": "way[highway~'^(motorway|trunk|primary|secondary|tertiary|pedestrian|unclassified)']", + "16": "way[highway~'^(motorway|trunk|primary|secondary|tertiary|pedestrian|unclassified|residential)']", + "17": "way[highway~'^(motorway|trunk|primary|secondary|tertiary|pedestrian|unclassified|residential|living_street|service)']", + "18": "way[highway][highway!~'^(raceway|bus_guideway)$']" + }, + "feature": { + "pre": [ + "{% set highway = tags.highway %}{% set is_link = false %}", + "{% if tags.highway|matches('_link$') %}", + " {% set highway = tags.highway|slice(0, tags.highway|length - 5) %}{% set is_link = true %}", + "{% endif %}" + ], + "description": "{{ tagTrans('highway', tags.highway) }}", + "priority": "{{ const.priorities[highway]|default(50) + (is_link ? 0.5 : 0) }}", + "markerSymbol": "", + "listMarkerSymbol": "line", + "style": { + "width": "{{ is_link ? 2 : 4 }}", + "color": "{{ const.colors[highway]|default('#ff0000') }}" + } + }, + "info": [ + "
{{ markerLine({ \"width\": \"4\", \"color\": color })|raw }} | ", + "{{ tagTrans('highway', k) }} | ", + "
{{ markerLine({ \"width\": \"2\", \"color\": const.colors.motorway })|raw }} | ", + "{{ tagTrans('highway', 'motorway_link') }} | ", + "
{{ markerLine({ \"width\": \"4\", \"color\": \"#ff0000\" })|raw }} | ", + "{{ trans('invalid value') }} | ", + "