Stephan Bösch-Plepelits
6 years ago
63 changed files with 2602 additions and 224 deletions
-
27buildings-entrances.json
-
40buildings-figure-ground.json
-
106buildings-height.json
-
131buildings-start_date.json
-
241buildings-type.json
-
44buildings.json
-
72car_maxspeed.json
-
11car_routes.json
-
4children.json
-
44coal.json
-
72communication.json
-
66culture.json
-
2culture_religion.json
-
78cycle_routes.json
-
24detailsBody.html
-
51education.json
-
8electric_power.json
-
17emergency.json
-
56financial.json
-
2hiking_routes.json
-
53historic.json
-
47index.json
-
24lang/ast.json
-
24lang/ca.json
-
24lang/cs.json
-
22lang/de.json
-
24lang/el.json
-
24lang/en.json
-
24lang/es.json
-
24lang/et.json
-
38lang/fr.json
-
26lang/hu.json
-
24lang/it.json
-
24lang/ja.json
-
24lang/nl.json
-
24lang/pl.json
-
30lang/pt-br.json
-
24lang/pt.json
-
24lang/ro.json
-
24lang/ru.json
-
24lang/template.json
-
24lang/uk.json
-
61law.json
-
47memorial.json
-
2military.json
-
4mtb-routes.json
-
47office.json
-
67oil_gas.json
-
82organisations.json
-
24popupBody.html
-
66power_routes.json
-
97pt.json
-
55public.json
-
166railway-maxspeed.json
-
2railway-routes.json
-
19religion.json
-
40renewables.json
-
8residential.json
-
143swimming_bathing.json
-
10tourism_attractions.json
-
79tourism_services.json
-
2transport_alternative.json
-
95xmas.json
@ -0,0 +1,27 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"de": "Eingänge", |
|||
"en": "Entrances", |
|||
"fr": "Entrées", |
|||
"pt-br": "Acessos" |
|||
}, |
|||
"query": { |
|||
"16": [ |
|||
"(", |
|||
" node[entrance];", |
|||
" node[building=entrance];", |
|||
")" |
|||
] |
|||
}, |
|||
"feature": { |
|||
"description": [ |
|||
"{% if tags.entrance == 'yes' or (not tags.entrance and tags.building == 'entrance') %}", |
|||
"{{ keyTrans('entrance') }}", |
|||
"{% else %}", |
|||
"{{ tagTrans('entrance', tags.entrance) }}", |
|||
"{% endif %}" |
|||
], |
|||
"styles": "" |
|||
} |
|||
} |
@ -0,0 +1,40 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"de": "Schwarzplan", |
|||
"en": "Figure-ground diagram", |
|||
"fr": "Empreintes", |
|||
"pt-br": "Cheios e vazios" |
|||
}, |
|||
"query": { |
|||
"16": [ |
|||
"(", |
|||
" way[building];", |
|||
" relation[building];", |
|||
")" |
|||
] |
|||
}, |
|||
"feature": { |
|||
"markerSymbol": "", |
|||
"listMarkerSymbol": "{{ markerPolygon({fillColor: \"#000000\", fillOpacity: 1 })|raw }}", |
|||
"priority": [ |
|||
"{% set p = 100 %}", |
|||
"{% if tags.name %}{% set p = p - 10 %}{% endif %}", |
|||
"{% if tags.amenity %}{% set p = p - 1 %}{% endif %}", |
|||
"{% if tags.historic %}{% set p = p - 1 %}{% endif %}", |
|||
"{% if tags.culture %}{% set p = p - 1 %}{% endif %}", |
|||
"{% if tags.highway %}{% set p = p - 1 %}{% endif %}", |
|||
"{% if tags.railway %}{% set p = p - 1 %}{% endif %}", |
|||
"{% if tags.aeroway %}{% set p = p - 1 %}{% endif %}", |
|||
"{% if tags.amenity %}{% set p = p - 1 %}{% endif %}", |
|||
"{% if tags.tourism %}{% set p = p - 1 %}{% endif %}", |
|||
"{{ p }}" |
|||
], |
|||
"style": { |
|||
"width": "0", |
|||
"color": "#000000", |
|||
"fillColor": "#000000", |
|||
"fillOpacity": "1" |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,106 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"de": "Gebäudehöhen", |
|||
"en": "Building height", |
|||
"fr": "Hauteur", |
|||
"pt-br": "Altura" |
|||
}, |
|||
"query": { |
|||
"16": [ |
|||
"(", |
|||
" way[building];", |
|||
" relation[building];", |
|||
")" |
|||
] |
|||
}, |
|||
"feature": { |
|||
"pre": [ |
|||
"{% if tags.height is defined %}", |
|||
"{% set approxHeight = tags.height %}", |
|||
"{% elseif attribute(tags, 'building:levels') is defined %}", |
|||
"{% set approxHeight = attribute(tags, 'building:levels') * 3.5 %}", |
|||
"{% endif %}", |
|||
"", |
|||
"{% if approxHeight <= 50 %}", |
|||
"{% set color = colorInterpolate(['green', 'red'], approxHeight / 50) %}", |
|||
"{% elseif approxHeight %}", |
|||
"{% set color = colorInterpolate(['red', 'yellow'], (approxHeight - 50) / 250) %} ", |
|||
"{% else %}", |
|||
"{% set color = '#7f7f7f' %}", |
|||
"{% endif %}" |
|||
], |
|||
"description": [ |
|||
"{% if tags.height is defined %}", |
|||
"{{ tags.height }}m", |
|||
"{% endif %}", |
|||
"", |
|||
"{% if attribute(tags, 'building:levels') is defined %}", |
|||
"{{ attribute(tags, 'building:levels') }} {{ keyTrans('building:levels') }}", |
|||
"{% endif %}" |
|||
], |
|||
"markerSymbol": null, |
|||
"listMarkerSymbol": "{{ markerPolygon({\"fillColor\": color, \"fillOpacity\": 0.8, \"width\": 1, \"color\": \"#000000\" })|raw }}", |
|||
"priority": "{{ (approxHeight|default(0)) * -1 }}", |
|||
"style": { |
|||
"width": "1", |
|||
"color": "#000000", |
|||
"fillColor": "{{ color }}", |
|||
"fillOpacity": "1" |
|||
} |
|||
}, |
|||
"info": [ |
|||
"<div style='display: inline-block'>", |
|||
"{{ tagTrans('height') }}", |
|||
"<table>", |
|||
" <tr>", |
|||
" <td>{{ markerPolygon(evaluate({ \"building\": \"yes\" }))|raw }}</td>", |
|||
" <td colspan>{{ trans('unknown') }}</td>", |
|||
" </tr>", |
|||
"{% for i in range(0, 50, 10) %}", |
|||
" <tr>", |
|||
" <td>{{ markerPolygon(evaluate({ \"building\": \"yes\", \"height\": i }))|raw }}</td>", |
|||
" <td>{{ i }}m</td>", |
|||
" </tr>", |
|||
"{% endfor %}", |
|||
"{% for i in range(100, 250, 50) %}", |
|||
" <tr>", |
|||
" <td>{{ markerPolygon(evaluate({ \"building\": \"yes\", \"height\": i }))|raw }}</td>", |
|||
" <td>{{ i }}m</td>", |
|||
" </tr>", |
|||
"{% endfor %}", |
|||
" <tr>", |
|||
" <td>{{ markerPolygon(evaluate({ \"building\": \"yes\", \"height\": \"300\" }))|raw }}</td>", |
|||
" <td>≥300m</td>", |
|||
" </tr>", |
|||
"</table>", |
|||
"</div>", |
|||
"", |
|||
"<div style='display: inline-block'>", |
|||
"{{ tagTrans('building:levels') }}", |
|||
"<table>", |
|||
" <tr>", |
|||
" <td>{{ markerPolygon(evaluate({ \"building\": \"yes\" }))|raw }}</td>", |
|||
" <td colspan>{{ trans('unknown') }}</td>", |
|||
" </tr>", |
|||
"{% for i in range(0, 12, 3) %}", |
|||
" <tr>", |
|||
" <td>{{ markerPolygon(evaluate({ \"building\": \"yes\", \"building:levels\": i }))|raw }}</td>", |
|||
" <td>{{ i }}</td>", |
|||
" </tr>", |
|||
"{% endfor %}", |
|||
"{% for i in range(15, 84, 15) %}", |
|||
" <tr>", |
|||
" <td>{{ markerPolygon(evaluate({ \"building\": \"yes\", \"building:levels\": i }))|raw }}</td>", |
|||
" <td>{{ i }}</td>", |
|||
" </tr>", |
|||
"{% endfor %}", |
|||
" <tr>", |
|||
" <td>{{ markerPolygon(evaluate({ \"building\": \"yes\", \"building:levels\": \"85\" }))|raw }}</td>", |
|||
" <td>≥85</td>", |
|||
" </tr>", |
|||
"</table>", |
|||
"", |
|||
"</div>" |
|||
] |
|||
} |
@ -0,0 +1,131 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"de": "Gebäudealter", |
|||
"en": "Building age", |
|||
"fr": "Date de construction", |
|||
"pt-br": "Idade" |
|||
}, |
|||
"query": { |
|||
"16": [ |
|||
"(", |
|||
" way[building];", |
|||
" relation[building];", |
|||
")" |
|||
] |
|||
}, |
|||
"feature": { |
|||
"pre": [ |
|||
"{% if tags.start_date %}", |
|||
" {% set value = tags.start_date|osmParseDate %}", |
|||
" {% if value and value[0] and value[1] %}", |
|||
" {% set value = (value[1] - value[0]) / 2 + value[0] %}", |
|||
" {% elseif value and value[0] %}", |
|||
" {% set value = value[0] %}", |
|||
" {% elseif value and value[1] %}", |
|||
" {% set value = value[1] %}", |
|||
" {% else %}", |
|||
" {% set value = 'error' %}", |
|||
" {% endif %}", |
|||
"", |
|||
" {% if value == 'error' %}", |
|||
" {% set color = '#ff0000' %}", |
|||
" {% elseif value < 1500 %}", |
|||
" {% set color = '#0000ff' %}", |
|||
" {% elseif value < 1900 %}", |
|||
" {% set color = colorInterpolate([ '#0000ff', '#ff00ff' ], (value - 1500.0) / 400) %}", |
|||
" {% elseif value < 2000 %}", |
|||
" {% set color = colorInterpolate([ '#ff00ff', '#ffff00' ], (value - 1900.0) / 100) %}", |
|||
" {% else %}", |
|||
" {% set color = colorInterpolate([ '#ffff00', '#00ff00' ], (value - 2000.0) / 50) %}", |
|||
" {% endif %}", |
|||
"{% else %}", |
|||
"{% set color = '#7f7f7f' %}", |
|||
"{% endif %}" |
|||
], |
|||
"description": [ |
|||
"{% if tags.start_date %}", |
|||
"{{ tags.start_date|osmFormatDate({ format: 'short' }) }}", |
|||
"{% else %}", |
|||
"{{ trans('unknown') }}", |
|||
"{% endif %}" |
|||
], |
|||
"popupDescription": [ |
|||
"{% if tags.start_date %}", |
|||
"{{ tags.start_date|osmFormatDate }}", |
|||
"{% else %}", |
|||
"{{ trans('unknown') }}", |
|||
"{% endif %}" |
|||
], |
|||
"markerSymbol": null, |
|||
"listMarkerSymbol": "{{ markerPolygon({ \"fillColor\": color, \"fillOpacity\": 0.8, \"width\": 1, \"color\": \"#000000\" })|raw }}", |
|||
"priority": [ |
|||
"{% set p = 100 %}", |
|||
"{% if tags.start_date %}{% set p = p - 20 %}{% endif %}", |
|||
"{% if tags.name %}{% set p = p - 10 %}{% endif %}", |
|||
"{% if tags.amenity %}{% set p = p - 1 %}{% endif %}", |
|||
"{% if tags.historic %}{% set p = p - 1 %}{% endif %}", |
|||
"{% if tags.culture %}{% set p = p - 1 %}{% endif %}", |
|||
"{% if tags.highway %}{% set p = p - 1 %}{% endif %}", |
|||
"{% if tags.railway %}{% set p = p - 1 %}{% endif %}", |
|||
"{% if tags.aeroway %}{% set p = p - 1 %}{% endif %}", |
|||
"{% if tags.amenity %}{% set p = p - 1 %}{% endif %}", |
|||
"{% if tags.tourism %}{% set p = p - 1 %}{% endif %}", |
|||
"{{ p }}" |
|||
], |
|||
"style": { |
|||
"width": "1", |
|||
"color": "#000000", |
|||
"fillColor": "{{ color }}", |
|||
"fillOpacity": "0.8" |
|||
} |
|||
}, |
|||
"info": [ |
|||
"<table>", |
|||
" <tr>", |
|||
" <td>{{ markerPolygon(evaluate({ \"building\": \"yes\", \"start_date\": \"1400\" }))|raw }}</td>", |
|||
" <td><1500</td>", |
|||
" </tr>", |
|||
" <tr>", |
|||
" <td>{{ markerPolygon(evaluate({ \"building\": \"yes\", \"start_date\": \"1500\" }))|raw }}</td>", |
|||
" <td>1500</td>", |
|||
" </tr>", |
|||
" <tr>", |
|||
" <td>{{ markerPolygon(evaluate({ \"building\": \"yes\", \"start_date\": \"1600\" }))|raw }}</td>", |
|||
" <td>1600</td>", |
|||
" </tr>", |
|||
" <tr>", |
|||
" <td>{{ markerPolygon(evaluate({ \"building\": \"yes\", \"start_date\": \"1700\" }))|raw }}</td>", |
|||
" <td>1700</td>", |
|||
" </tr>", |
|||
" <tr>", |
|||
" <td>{{ markerPolygon(evaluate({ \"building\": \"yes\", \"start_date\": \"1800\" }))|raw }}</td>", |
|||
" <td>1800</td>", |
|||
" </tr>", |
|||
" <tr>", |
|||
" <td>{{ markerPolygon(evaluate({ \"building\": \"yes\", \"start_date\": \"1900\" }))|raw }}</td>", |
|||
" <td>1900</td>", |
|||
" </tr>", |
|||
" <tr>", |
|||
" <td>{{ markerPolygon(evaluate({ \"building\": \"yes\", \"start_date\": \"1950\" }))|raw }}</td>", |
|||
" <td>1950</td>", |
|||
" </tr>", |
|||
" <tr>", |
|||
" <td>{{ markerPolygon(evaluate({ \"building\": \"yes\", \"start_date\": \"2000\" }))|raw }}</td>", |
|||
" <td>2000</td>", |
|||
" </tr>", |
|||
" <tr>", |
|||
" <td>{{ markerPolygon(evaluate({ \"building\": \"yes\", \"start_date\": \"2020\" }))|raw }}</td>", |
|||
" <td>2020</td>", |
|||
" </tr>", |
|||
" <tr>", |
|||
" <td>{{ markerPolygon(evaluate({ \"building\": \"yes\", \"start_date\": \"xxx\" }))|raw }}</td>", |
|||
" <td>{{ repoTrans('date format not understood') }}</td>", |
|||
" </tr>", |
|||
" <tr>", |
|||
" <td>{{ markerPolygon(evaluate({ \"building\": \"yes\" }))|raw }}</td>", |
|||
" <td>{{ trans('unknown') }}</td>", |
|||
" </tr>", |
|||
"</table>" |
|||
] |
|||
} |
@ -0,0 +1,241 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"de": "Gebäudearten", |
|||
"en": "Building types", |
|||
"fr": "Type", |
|||
"pt-br": "Tipologias" |
|||
}, |
|||
"query": { |
|||
"16": [ |
|||
"(", |
|||
" way[building][building!=no];", |
|||
" relation[building][building!=no];", |
|||
")" |
|||
] |
|||
}, |
|||
"feature": { |
|||
"pre": [ |
|||
"{% set type = tags.building|split(';')[0] %}", |
|||
"{% set color = const.other.color %}", |
|||
"{% for cat, data in const %}", |
|||
" {% if type in data.types %}", |
|||
" {% set color = data.color %}", |
|||
" {% endif %}", |
|||
"{% endfor %}" |
|||
], |
|||
"description": [ |
|||
"{% if tags.building == 'yes' %}", |
|||
"{{ keyTrans('building') }}", |
|||
"{% else %}", |
|||
"{{ tagTransList('building', tags.building) }}", |
|||
"{% endif %}", |
|||
"{% if tags.building == 'construction' and tags.construction %}", |
|||
"({{ tagTransList('building', tags.construction) }})", |
|||
"{% endif %}" |
|||
], |
|||
"markerSymbol": "", |
|||
"listMarkerSymbol": "{{ markerPolygon({\"fillColor\": color, \"fillOpacity\": 0.8, \"width\": 1, \"color\": \"#000000\" })|raw }}", |
|||
"priority": [ |
|||
"{% set p = 100 %}", |
|||
"{% if tags.name %}{% set p = p - 10 %}{% endif %}", |
|||
"{% if tags.amenity %}{% set p = p - 1 %}{% endif %}", |
|||
"{% if tags.historic %}{% set p = p - 1 %}{% endif %}", |
|||
"{% if tags.culture %}{% set p = p - 1 %}{% endif %}", |
|||
"{% if tags.highway %}{% set p = p - 1 %}{% endif %}", |
|||
"{% if tags.railway %}{% set p = p - 1 %}{% endif %}", |
|||
"{% if tags.aeroway %}{% set p = p - 1 %}{% endif %}", |
|||
"{% if tags.amenity %}{% set p = p - 1 %}{% endif %}", |
|||
"{% if tags.tourism %}{% set p = p - 1 %}{% endif %}", |
|||
"{{ p }}" |
|||
], |
|||
"style": { |
|||
"width": "1", |
|||
"color": "#000000", |
|||
"fillColor": "{{ color }}", |
|||
"fillOpacity": "0.8" |
|||
} |
|||
}, |
|||
"info": [ |
|||
"<table>", |
|||
"{% for cat, data in const %}", |
|||
" <tr>", |
|||
" <td valign='top'>{{ markerPolygon({ \"fillColor\": data.color, \"fillOpacity\": \"0.8\", \"width\": 1, \"color\": \"#000000\" })|raw }}</td>", |
|||
" <td onclick='this.classList.toggle(\"infoShowDetails\")'><b>{{ trans(data.name) }}</b><span class='details'>:", |
|||
" {% for i, type in data.types %}<span title='building={{ type }}'>{% if i > 0 %}, {% endif %}{{ tagTrans('building', type) }}</span>{% endfor %}", |
|||
" </span>", |
|||
"<span class='summary'><i class=\"fa fa-info-circle\" aria-hidden=\"true\"></i></span>", |
|||
" </td>", |
|||
" </tr>", |
|||
"{% endfor %}", |
|||
"</table>" |
|||
], |
|||
"const": { |
|||
"residential": { |
|||
"name": "tag:building=residential", |
|||
"color": "#25a000", |
|||
"types": [ |
|||
"house", |
|||
"apartments", |
|||
"block", |
|||
"flats", |
|||
"farm", |
|||
"detached", |
|||
"dormitory", |
|||
"terrace", |
|||
"houseboat", |
|||
"bungalow", |
|||
"static_caravan", |
|||
"residential", |
|||
"semidetached_house", |
|||
"ger", |
|||
"trullo" |
|||
] |
|||
}, |
|||
"tourism": { |
|||
"name": "tag:tourism", |
|||
"color": "#814ce2", |
|||
"types": [ |
|||
"hotel", |
|||
"ruins", |
|||
"conservatory" |
|||
] |
|||
}, |
|||
"commercial": { |
|||
"name": "tag:building=commercial", |
|||
"color": "#ec5bcf", |
|||
"types": [ |
|||
"commercial", |
|||
"office", |
|||
"industrial", |
|||
"retail", |
|||
"supermarket", |
|||
"warehouse", |
|||
"kiosk", |
|||
"mall", |
|||
"shop" |
|||
] |
|||
}, |
|||
"religious": { |
|||
"name": "tag:building=religious", |
|||
"color": "#af29cc", |
|||
"types": [ |
|||
"religious", |
|||
"cathedral", |
|||
"chapel", |
|||
"church", |
|||
"mosque", |
|||
"temple", |
|||
"synagogue", |
|||
"shrine", |
|||
"monastery" |
|||
] |
|||
}, |
|||
"amenity": { |
|||
"name": "tag:amenity", |
|||
"color": "#2935cc", |
|||
"types": [ |
|||
"kindergarten", |
|||
"civic", |
|||
"government", |
|||
"hospital", |
|||
"school", |
|||
"university", |
|||
"grandstand", |
|||
"public", |
|||
"toilets", |
|||
"college" |
|||
] |
|||
}, |
|||
"agriculture": { |
|||
"name": "tag:landuse=agriculture", |
|||
"color": "#92e934", |
|||
"types": [ |
|||
"bakehouse", |
|||
"barn", |
|||
"cowshed", |
|||
"farm_auxiliary", |
|||
"greenhouse", |
|||
"stable", |
|||
"sty", |
|||
"kitchen", |
|||
"slurry_tank", |
|||
"silo" |
|||
] |
|||
}, |
|||
"industrial": { |
|||
"name": "tag:landuse=industrial", |
|||
"color": "#e2da1b", |
|||
"types": [ |
|||
"construction", |
|||
"garbage_shed", |
|||
"transformer_tower", |
|||
"service", |
|||
"water_tower", |
|||
"industrial", |
|||
"warehouse", |
|||
"storage_tank" |
|||
] |
|||
}, |
|||
"transportation": { |
|||
"name": "tag:building=transportation", |
|||
"color": "#1bb5e2", |
|||
"types": [ |
|||
"carport", |
|||
"garage", |
|||
"garages", |
|||
"bridge", |
|||
"hangar", |
|||
"parking", |
|||
"train_station", |
|||
"transportation" |
|||
] |
|||
}, |
|||
"sport": { |
|||
"name": "tag:sport", |
|||
"color": "#e21b66", |
|||
"types": [ |
|||
"pavilion", |
|||
"riding_hall", |
|||
"stadium", |
|||
"sports_hall" |
|||
] |
|||
}, |
|||
"roof": { |
|||
"name": "tag:building=roof", |
|||
"color": "#afafaf7f", |
|||
"types": [ |
|||
"roof" |
|||
] |
|||
}, |
|||
"shelter": { |
|||
"name": "tag:amenity=shelter", |
|||
"color": "#cc8725", |
|||
"types": [ |
|||
"cabin", |
|||
"hut", |
|||
"shed" |
|||
] |
|||
}, |
|||
"military": { |
|||
"name": "tag:military", |
|||
"color": "#4a7300", |
|||
"types": [ |
|||
"bunker" |
|||
] |
|||
}, |
|||
"unspecified": { |
|||
"name": "tag:building=generic", |
|||
"color": "#7f7f7f", |
|||
"types": [ |
|||
"yes", |
|||
"generic" |
|||
] |
|||
}, |
|||
"other": { |
|||
"name": "other", |
|||
"color": "#ff0000", |
|||
"types": [] |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,44 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"de": "Kohle", |
|||
"en": "Coal", |
|||
"fr": "Charbon", |
|||
"hu": "Kőszén", |
|||
"pt-br": "Carvão" |
|||
}, |
|||
"query": { |
|||
"11": [ |
|||
"(", |
|||
"node[landuse~\"^(quarry)$\"][resource~\"^(|.*;)coal(|;.*)$\"];", |
|||
"way[landuse~\"^(quarry)$\"][resource~\"^(|.*;)coal(|;.*)$\"];", |
|||
"relation[landuse~\"^(quarry)$\"][resource~\"^(|.*;)coal(|;.*)$\"];", |
|||
"node[man_made~\"^(mineshaft)$\"][resource~\"^(|.*;)coal(|;.*)$\"];", |
|||
"way[man_made~\"^(mineshaft)$\"][resource~\"^(|.*;)coal(|;.*)$\"];", |
|||
"way[man_made~\"^(pipeline|goods_conveyor)$\"][substance~\"^(|.*;)(coal)(|;.*)$\"];", |
|||
"relation[man_made~\"^(pipeline|goods_conveyor)$\"][substance~\"^(|.*;)(coal)(|;.*)$\"];", |
|||
"node[power~\"^(plant)$\"][\"generator:source\"~\"^(|.*;)(coal)(|;.*)$\"];", |
|||
"way[power~\"^(plant)$\"][\"generator:source\"~\"^(|.*;)(coal)(|;.*)$\"];", |
|||
"relation[power~\"^(plant)$\"][\"generator:source\"~\"^(|.*;)(coal)(|;.*)$\"];", |
|||
")" |
|||
] |
|||
}, |
|||
"feature": { |
|||
"description": [ |
|||
"{% if tags.man_made == 'pipeline' %}", |
|||
"{{ tagTrans('man_made', 'pipeline') }} ({{ tagTrans('substance', tags.substance) }})", |
|||
"{% elseif tags.man_made %}", |
|||
"{{ tagTrans('man_made', tags.man_made) }}", |
|||
"{% elseif tags.power == 'plant' %}", |
|||
"{{ tagTrans('power', 'plant') }} {% if attribute(tags, 'generator:source') %}({{ tagTransList('generator:source', attribute(tags, 'generator:source')) }}){% endif %}", |
|||
"{% elseif tags.power == 'generator' %}", |
|||
"{{ tagTrans('power', 'generator') }} {% if attribute(tags, 'generator:source') %}({{ tagTransList('generator:source', attribute(tags, 'generator:source')) }}){% endif %}", |
|||
"{% elseif tags.landuse == 'quarry' %}", |
|||
"{{ tagTrans('landuse', tags.landuse) }} {% if tags.resource %}({{ tagTrans('resource', tags.resource) }}){% endif %}", |
|||
"{% elseif tags.landuse == 'industrial' %}", |
|||
"{{ tagTrans('landuse', tags.landuse) }} ({{ tagTrans('industrial', tags.industrial) }})", |
|||
"{% endif %}" |
|||
], |
|||
"markerSymbol": null |
|||
} |
|||
} |
@ -0,0 +1,61 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"en": "Law", |
|||
"fr": "Services législatifs", |
|||
"pt-br": "Direito" |
|||
}, |
|||
"query": { |
|||
"14": [ |
|||
"(", |
|||
"node[amenity~\"^(courthouse)$\"];", |
|||
"way[amenity~\"^(courthouse)$\"];", |
|||
"relation[amenity~\"^(courthouse)$\"];", |
|||
"node[office~\"^(lawyer|notary)$\"];", |
|||
"way[office~\"^(lawyer|notary)$\"];", |
|||
"relation[office~\"^(lawyer|notary)$\"];", |
|||
")" |
|||
] |
|||
}, |
|||
"feature": { |
|||
"pre": [ |
|||
"{% if tags.amenity %}", |
|||
" {% set key = 'amenity' %}", |
|||
" {% set value = tags.amenity %}", |
|||
"{% else %}", |
|||
" {% set key = 'office' %}", |
|||
" {% set value = tags.office %}", |
|||
"{% endif %}" |
|||
], |
|||
"description": "{{ tagTrans(key, value) }}", |
|||
"markerSign": "{{ const[key ~ '=' ~ value].sign|raw }}" |
|||
}, |
|||
"info": [ |
|||
"<table>", |
|||
"{% for kv, data in const %}", |
|||
"{% if data.zoom <= map.zoom %}", |
|||
" <tr>", |
|||
" <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>", |
|||
" <td>", |
|||
" {{ tagTrans(kv|split('=')[0], kv|split('=')[1]) }}", |
|||
" </td>", |
|||
" </tr>", |
|||
"{% endif %}", |
|||
"{% endfor %}", |
|||
"</table>" |
|||
], |
|||
"const": { |
|||
"amenity=courthouse": { |
|||
"sign": "<i class=\"fas fa-gavel\"></i>", |
|||
"zoom": 14 |
|||
}, |
|||
"office=lawyer": { |
|||
"sign": "⚖", |
|||
"zoom": 14 |
|||
}, |
|||
"office=notary": { |
|||
"sign": "<i class=\"fas fa-file-signature\"></i>", |
|||
"zoom": 14 |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,47 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"de": "Ämter, Dienst- und Geschäftsstellen", |
|||
"en": "Offices", |
|||
"fr": "Bureaux", |
|||
"hu": "Irodák, hivatalok", |
|||
"pt-br": "Escritórios e agências" |
|||
}, |
|||
"query": { |
|||
"14": "nwr[office]" |
|||
}, |
|||
"feature": { |
|||
"description": [ |
|||
"{{ tagTrans('office', tags.office) }}", |
|||
"{% if tags.office == 'government' and tags.government %}({{ tagTrans('government', tags.government) }}){% endif %}" |
|||
], |
|||
"markerSign": "{{ const[tags.office]|raw }}" |
|||
}, |
|||
"const": { |
|||
"government": "<i class='fas fa-landmark'></i>", |
|||
"company": "<i class='fas fa-building'></i>", |
|||
"estate_agent": "<i class='fas fa-home'></i>", |
|||
"insurance": "<i class='fas fa-file-signature'></i>", |
|||
"lawyer": "<i class='fas fa-gavel'></i>", |
|||
"educational_institution": "<i class='fas fa-school'></i>", |
|||
"administrative": "<i class='fas fa-landmark'></i>", |
|||
"telecommunication": "<i class='fas fa-phone'></i>", |
|||
"ngo": "<i class='fas fa-people-carry'></i>", |
|||
"quango": "<i class='fas fa-people-carry'></i>", |
|||
"association": "<i class='fas fa-people-carry'></i>", |
|||
"it": "<i class='fas fa-desktop'></i>", |
|||
"accountant": "<i class='fas fa-money-bill-alt'></i>", |
|||
"tax_advisor": "<i class='fas fa-money-bill-alt'></i>", |
|||
"employment_agency": "<i class='fas fa-user'></i>", |
|||
"research": "<i class='fas fa-flask'></i>", |
|||
"religion": "<i class='fas fa-pray'></i>", |
|||
"architect": "<i class='fas fa-torii-gate'></i>", |
|||
"financial": "<i class='fas fa-money-bill'></i>", |
|||
"newspaper": "<i class='fas fa-newspaper'></i>", |
|||
"political_party": "<i class='fas fa-flag'></i>", |
|||
"advertising_agency": "<i class='fas fa-ad'></i>", |
|||
"therapist": "<i class='fas fa-couch'></i>", |
|||
"travel_agent": "<i class='fas fa-plane-departure'></i>", |
|||
"publisher": "<i class='fas fa-book'></i>" |
|||
} |
|||
} |
@ -0,0 +1,67 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"de": "Erdöl und Erdgas", |
|||
"en": "Petroleum and natural gas", |
|||
"fr": "Pétrole et gaz naturel", |
|||
"hu": "Kőolaj, földgáz", |
|||
"pt-br": "Petróleo e gás" |
|||
}, |
|||
"query": { |
|||
"11": [ |
|||
"(", |
|||
"way[man_made~\"^(pipeline|goods_conveyor)$\"][substance~\"^(|.*;)(oil|gas|lng|cng|multiphase)(|;.*)$\"];", |
|||
"relation[man_made~\"^(pipeline|goods_conveyor)$\"][substance~\"^(|.*;)(oil|gas|lng|cng|multiphase)(|;.*)$\"];", |
|||
"node[landuse=industrial][industrial~\"^(|.*;)(refinery)(|;.*)$\"];", |
|||
"way[landuse=industrial][industrial~\"^(|.*;)(refinery)(|;.*)$\"];", |
|||
"relation[landuse=industrial][industrial~\"^(|.*;)(refinery)(|;.*)$\"];", |
|||
"way[waterway=offshore_field];", |
|||
"relation[waterway=offshore_field];", |
|||
"node[man_made~\"^(offshore_platform)$\"];", |
|||
"way[man_made~\"^(offshore_platform)$\"];", |
|||
"relation[man_made~\"^(offshore_platform)$\"];", |
|||
"node[power~\"^(plant)$\"][\"generator:source\"~\"^(|.*;)(oil|gas|diesel|gasoline)(|;.*)$\"];", |
|||
"way[power~\"^(plant)$\"][\"generator:source\"~\"^(|.*;)(oil|gas|diesel|gasoline)(|;.*)$\"];", |
|||
"relation[power~\"^(plant)$\"][\"generator:source\"~\"^(|.*;)(oil|gas|diesel|gasoline)(|;.*)$\"];", |
|||
")" |
|||
], |
|||
"13": [ |
|||
"(", |
|||
"way[man_made~\"^(pipeline|goods_conveyor)$\"][substance~\"^(|.*;)(oil|gas|lng|cng|multiphase)(|;.*)$\"];", |
|||
"relation[man_made~\"^(pipeline|goods_conveyor)$\"][substance~\"^(|.*;)(oil|gas|lng|cng|multiphase)(|;.*)$\"];", |
|||
"node[landuse=industrial][industrial~\"^(|.*;)(oil|gas|lng|cng|multiphase|refinery|oil_refinery)(|;.*)$\"];", |
|||
"way[landuse=industrial][industrial~\"^(|.*;)(oil|gas|lng|cng|multiphase|refinery|oil_refinery)(|;.*)$\"];", |
|||
"relation[landuse=industrial][industrial~\"^(|.*;)(oil|gas|lng|cng|multiphase|refinery|oil_refinery)(|;.*)$\"];", |
|||
"way[waterway=offshore_field];", |
|||
"relation[waterway=offshore_field];", |
|||
"node[man_made~\"^(petroleum_well|offshore_platform|gasometer|oil_tank|gas_cavern)$\"];", |
|||
"node[man_made~\"^(storage_tank)$\"][contents~\"^(oil|gas|lng|cng|multiphase)$\"];", |
|||
"way[man_made~\"^(petroleum_well|offshore_platform|gasometer|oil_tank|gas_cavern)$\"];", |
|||
"way[man_made~\"^(storage_tank)$\"][contents~\"^(oil|gas|lng|cng|multiphase)(|;.*)$\"];", |
|||
"relation[man_made~\"^(petroleum_well|offshore_platform|gasometer|oil_tank|gas_cavern)(|;.*)$\"];", |
|||
"relation[man_made~\"^(storage_tank)$\"][contents~\"^(|.*;)(oil|gas|lng|cng|multiphase)(|;.*)$\"];", |
|||
"node[power~\"^(plant|generator)$\"][\"generator:source\"~\"^(|.*;)(oil|gas|diesel|gasoline)(|;.*)$\"];", |
|||
"way[power~\"^(plant|generator)$\"][\"generator:source\"~\"^(|.*;)(oil|gas|diesel|gasoline)(|;.*)$\"];", |
|||
"relation[power~\"^(plant|generator)$\"][\"generator:source\"~\"^(|.*;)(oil|gas|diesel|gasoline)(|;.*)$\"];", |
|||
")" |
|||
] |
|||
}, |
|||
"feature": { |
|||
"description": [ |
|||
"{% if tags.man_made == 'pipeline' %}", |
|||
"{{ tagTrans('man_made', 'pipeline') }} ({{ tagTrans('substance', tags.substance) }})", |
|||
"{% elseif tags.man_made %}", |
|||
"{{ tagTrans('man_made', tags.man_made) }}", |
|||
"{% elseif tags.power == 'plant' %}", |
|||
"{{ tagTrans('power', 'plant') }} {% if attribute(tags, 'generator:source') %}({{ tagTransList('generator:source', attribute(tags, 'generator:source')) }}){% endif %}", |
|||
"{% elseif tags.power == 'generator' %}", |
|||
"{{ tagTrans('power', 'generator') }} {% if attribute(tags, 'generator:source') %}({{ tagTransList('generator:source', attribute(tags, 'generator:source')) }}){% endif %}", |
|||
"{% elseif tags.waterway == 'offshore_field' %}", |
|||
"{{ tagTrans('waterway', tags.waterway) }}", |
|||
"{% elseif tags.landuse == 'industrial' %}", |
|||
"{{ tagTrans('landuse', tags.landuse) }} ({{ tagTrans('industrial', tags.industrial) }})", |
|||
"{% endif %}" |
|||
], |
|||
"markerSymbol": null |
|||
} |
|||
} |
@ -0,0 +1,82 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"en": "Organisations", |
|||
"fr": "Organisations", |
|||
"pt-br": "Organizações" |
|||
}, |
|||
"query": { |
|||
"13": [ |
|||
"(", |
|||
"nwr[office~\"^(ngo|quango|political_party|association|charity)$\"];", |
|||
")" |
|||
] |
|||
}, |
|||
"feature": { |
|||
"pre": [ |
|||
"{% set key = 'office' %}", |
|||
"{% set value = tags.office %}", |
|||
"" |
|||
], |
|||
"description": "{{ tagTrans(key, value) }}", |
|||
"body": "{% if tags.operator %}{{ keyTrans('operator') }}: {{ tags.operator }}<br/>{% endif %}", |
|||
"markerSign": [ |
|||
"{% set data = const[key ~ '=' ~ value] %}", |
|||
"{% if data %}", |
|||
"{{ data.sign|raw }}", |
|||
"{% endif %}" |
|||
], |
|||
"priority": [ |
|||
"{% set data = const[key ~ '=' ~ value] %}", |
|||
"{% if data %}", |
|||
"{{ data.priority }}", |
|||
"{% endif %}" |
|||
] |
|||
}, |
|||
"info": [ |
|||
"<table>", |
|||
"{% for kv, data in const %}", |
|||
"{% if data.zoom <= map.zoom %}", |
|||
" <tr>", |
|||
" <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>", |
|||
" <td>", |
|||
" {{ tagTrans(kv|split('=')[0], kv|split('=')[1]) }}", |
|||
" </td>", |
|||
" </tr>", |
|||
"{% endif %}", |
|||
"{% endfor %}", |
|||
"</table>" |
|||
], |
|||
"const": { |
|||
"office=ngo": { |
|||
"priority": 0, |
|||
"sign": "<i class='fas fa-users'></i>", |
|||
"zoom": 13 |
|||
}, |
|||
"office=quango": { |
|||
"priority": 0, |
|||
"sign": "<i class='fas fa-users'></i>", |
|||
"zoom": 13 |
|||
}, |
|||
"office=political_party": { |
|||
"priority": 0, |
|||
"sign": "<i class='fas fa-flag'></i>", |
|||
"zoom": 13 |
|||
}, |
|||
"office=association": { |
|||
"priority": 0, |
|||
"sign": "<i class='fas fa-people-carry'></i>", |
|||
"zoom": 13 |
|||
}, |
|||
"office=foundation": { |
|||
"priority": 0, |
|||
"sign": "<i class='fas fa-people-carry'></i>", |
|||
"zoom": 13 |
|||
}, |
|||
"office=charity": { |
|||
"priority": 0, |
|||
"sign": "<i class='fas fa-hands-helping'></i>", |
|||
"zoom": 13 |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,66 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"en": "Power routes", |
|||
"fr": "Réseaux électriques", |
|||
"hu": "Távvezetékek", |
|||
"pt-br": "Rotas de energia" |
|||
}, |
|||
"query": { |
|||
"10": "relation[type=route][route=power]" |
|||
}, |
|||
"members": true, |
|||
"feature": { |
|||
"pre": "{% set color = '#' ~ tags.operator|default('')|md5|slice(0, 6) %}", |
|||
"description": "{% if tags.operator %}{{ tags.operator }}{% endif %}", |
|||
"title": "{% if tags.ref and tags.name %}{{ tags.ref }} - {{ tags.name }}{% elseif tags.ref %}{{ tags.ref }}{% elseif tags.name %}{{ tags.name }}{% else %}{{ trans('unnamed') }}{% endif %}", |
|||
"listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': color })|raw }}", |
|||
"markerSymbol": "", |
|||
"styles": "" |
|||
}, |
|||
"memberFeature": { |
|||
"pre": [ |
|||
"{% set refs = [] %}", |
|||
"{% set color = '#d41d8c' %}", |
|||
"{% if tags.ref %}", |
|||
" {% for ref in tags.ref|split(';') %}", |
|||
" {% set refs = refs|merge([ ref|trim ]) %}", |
|||
" {% endfor %}", |
|||
"{% endif %}", |
|||
"", |
|||
"{% for master in masters %}", |
|||
" {% if master.tags.operator %}", |
|||
" {% set color = '#' ~ master.tags.operator|md5|slice(0, 6) %}", |
|||
" {% endif %}", |
|||
" {% if master.tags.ref %}", |
|||
" {% set refs = refs|merge([ master.tags.ref ]) %}", |
|||
" {% endif %}", |
|||
"{% endfor %}", |
|||
"", |
|||
"{% set refs = refs|unique|natsort({ insensitive: true }) %}" |
|||
], |
|||
"body": [ |
|||
"<h4>Routes</h4>", |
|||
"<ul>", |
|||
"{% for master in masters %}", |
|||
" {% set _color = '#' ~ master.tags.operator|default('')|md5|slice(0, 6) %}", |
|||
" <li data-object=\"{{ master.id }}\" style='list-style: none;'>", |
|||
" <span class='markerParent'><div class='marker'>{{ markerLine({ width: 4, color: _color })|raw }}</div></span>", |
|||
" <span class='title'>{% if master.tags.ref and master.tags.name %}{{ master.tags.ref }} - {{ master.tags.name|default(master.tags.ref) }}{% elseif master.tags.ref %}{{ master.tags.ref }}{% elseif master.tags.name %}{{ master.tags.name }}{% else %}{{ trans('unnamed') }}{% endif %}</span>", |
|||
" <span class='description'>{{ master.tags.operator }}</span>", |
|||
" </li>", |
|||
"{% endfor %}", |
|||
"</ul>" |
|||
], |
|||
"listExclude": "1", |
|||
"style": { |
|||
"color": "{{ color }}", |
|||
"width": 4, |
|||
"opacity": 1, |
|||
"text": "{{ refs|join(' · ') }} ", |
|||
"textRepeat": "1", |
|||
"textOffset": "12", |
|||
"textFontWeight": "bold" |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,166 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"de": "Eisenbahn Höchstgeschwindigkeiten", |
|||
"en": "Railway Maxspeed", |
|||
"fr": "Limites de vitesse", |
|||
"hu": "Sebességkorlátozás", |
|||
"pt": "Velocidade máxima", |
|||
"pt-br": "Velocidade máxima" |
|||
}, |
|||
"query": { |
|||
"11": "way[railway=rail][railway!~'^(platform|abandoned|disused|station|proposed|subway_entrance)$'][usage~'^(main|branch)$'];", |
|||
"14": "way[railway][railway!~'^(platform|abandoned|disused|station|proposed|subway_entrance)$'];" |
|||
}, |
|||
"feature": { |
|||
"pre": [ |
|||
"{% set maxspeedKmh = null %}", |
|||
"{% set maxspeed = null %}", |
|||
"{% set unit = null %}", |
|||
"", |
|||
"{% if tags.maxspeed is defined %}", |
|||
" {% if tags.maxspeed|matches(\"^[0-9]+$\") %}", |
|||
" {% set maxspeedKmh = tags.maxspeed %}", |
|||
" {% set maxspeed = tags.maxspeed %}", |
|||
" {% set unit = \"km/h\" %}", |
|||
" {% elseif tags.maxspeed|matches( \"(^[0-9]+) mph$\") %}", |
|||
" {% set m = tags.maxspeed|matches(\"(^[0-9]+) mph$\") %}", |
|||
" {% set maxspeedKmh = m[1] * 1.60934 %}", |
|||
" {% set maxspeed = m[1] %}", |
|||
" {% set unit = \"mph\" %}", |
|||
" {% endif %}", |
|||
"{% endif %}", |
|||
"", |
|||
"{% if attribute(tags, 'maxspeed:forward') is defined %}", |
|||
" {% if attribute(tags, 'maxspeed:forward')|matches(\"^[0-9]+$\") %}", |
|||
" {% set maxspeedFKmh = attribute(tags, 'maxspeed:forward') %}", |
|||
" {% set maxspeedF = attribute(tags, 'maxspeed:forward') %}", |
|||
" {% set unit = \"km/h\" %}", |
|||
" {% elseif attribute(tags, 'maxspeed:forward')|matches(\"^[0-9]+ mph$\") %}", |
|||
" {% set m = attribute(tags, 'maxspeed:forward')|matches(\"(^[0-9]+) mph$\") %}", |
|||
" {% set maxspeedFKmh = m[1] * 1.60934 %}", |
|||
" {% set maxspeedF = m[1] %}", |
|||
" {% set unit = \"mph\" %}", |
|||
" {% endif %}", |
|||
"{% endif %}", |
|||
"", |
|||
"{% if attribute(tags, 'maxspeed:backward') is defined %}", |
|||
" {% if attribute(tags, 'maxspeed:backward')|matches(\"^[0-9]+$\") %}", |
|||
" {% set maxspeedBKmh = attribute(tags, 'maxspeed:backward') %}", |
|||
" {% set maxspeedB = attribute(tags, 'maxspeed:backward') %}", |
|||
" {% set unit = \"km/h\" %}", |
|||
" {% elseif attribute(tags, 'maxspeed:backward')|matches(\"^[0-9]+ mph$\") %}", |
|||
" {% set m = attribute(tags, 'maxspeed:backward')|matches(\"(^[0-9]+) mph$\") %}", |
|||
" {% set maxspeedBKmh = m[1] * 1.60934 %}", |
|||
" {% set maxspeedB = m[1] %}", |
|||
" {% set unit = \"mph\" %}", |
|||
" {% endif %}", |
|||
"{% endif %}", |
|||
"", |
|||
"{% if not maxspeedKmh %}", |
|||
"{% set color = \"#404040\" %}", |
|||
"{% else %}", |
|||
"{% set color = colorInterpolate(const.colorMap, (maxspeedKmh - const.offsetColorSpeed) / const.highestColorSpeed) %}", |
|||
"{% endif %}", |
|||
"", |
|||
"{% if maxspeedFKmh %}", |
|||
"{% set colorF = colorInterpolate(const.colorMap, (maxspeedFKmh - const.offsetColorSpeed) / const.highestColorSpeed) %}", |
|||
"{% endif %}", |
|||
"", |
|||
"{% if maxspeedBKmh %}", |
|||
"{% set colorB = colorInterpolate(const.colorMap, (maxspeedBKmh - const.offsetColorSpeed) / const.highestColorSpeed) %}", |
|||
"{% endif %}" |
|||
], |
|||
"description": [ |
|||
"{% if maxspeedF or maxspeedB %}", |
|||
"<span style='color: {{ colorB }}'>{{ maxspeedB|default(trans('unknown')) }}</span> / <span style='color: {{ colorF }}'>{{ maxspeedF|default(trans('unknown')) }}</span> {{ unit }}", |
|||
"{% elseif maxspeed %}", |
|||
"<span style='color: {{ color }}'>{{ maxspeed }} {{ unit }}</span>", |
|||
"{% elseif tags.maxspeed %}", |
|||
"{{ tags.maxspeed }}", |
|||
"{% else %}", |
|||
"{{ trans('unknown') }}", |
|||
"{% endif %}" |
|||
], |
|||
"markerSymbol": null, |
|||
"listMarkerSymbol": "line", |
|||
"styles": "{% if maxspeedB or maxspeedF %}left,right,default{% else %}default{% endif %}", |
|||
"style": { |
|||
"width": "{% if maxspeedB or maxspeedF %}0{% else %}4{% endif %}", |
|||
"color": "{{ color }}", |
|||
"text": [ |
|||
"{% if maxspeedB or maxspeedF %}", |
|||
" {% if maxspeedB %}🡸 {{ maxspeedB }} {% endif %}|{% if maxspeedF %} {{ maxspeedF }} 🡺{% endif %} ", |
|||
"{% else %}", |
|||
" {{ maxspeed }} ", |
|||
"{% endif %}" |
|||
], |
|||
"textRepeat": "1", |
|||
"textOffset": "4", |
|||
"textFontWeight": "bold" |
|||
}, |
|||
"style:left": { |
|||
"width": "2", |
|||
"color": "{{ colorB|default('#404040') }}", |
|||
"offset": "-1" |
|||
}, |
|||
"style:right": { |
|||
"width": "2", |
|||
"color": "{{ colorF|default('#404040') }}", |
|||
"offset": "1" |
|||
} |
|||
}, |
|||
"const": { |
|||
"colorMap": [ |
|||
"#00af00", |
|||
"#ff7f00", |
|||
"#ff0000", |
|||
"#af00af" |
|||
], |
|||
"highestColorSpeed": 300, |
|||
"offsetColorSpeed": 20 |
|||
}, |
|||
"info": [ |
|||
"<div style='display: inline-block'>", |
|||
"<table>", |
|||
" <tr>", |
|||
" <td>{{ markerLine(evaluate({}))|raw }}</td>", |
|||
" <td colspan>{{ trans('unknown') }}</td>", |
|||
" </tr>", |
|||
"{% for i in range(25, 280, 25) %}", |
|||
" <tr>", |
|||
" <td>{{ markerLine(evaluate({ \"maxspeed\": i }))|raw }}</td>", |
|||
" <td>{{ i }}km/h</td>", |
|||
" </tr>", |
|||
"{% endfor %}", |
|||
" <tr>", |
|||
" <td>{{ markerLine(evaluate({ \"maxspeed\": 300 }))|raw }}</td>", |
|||
" <td>≥300km/h</td>", |
|||
" </tr>", |
|||
"</table>", |
|||
"</div>", |
|||
"", |
|||
"<div style='display: inline-block'>", |
|||
"<table>", |
|||
" <tr>", |
|||
" <td>{{ markerLine(evaluate({}))|raw }}</td>", |
|||
" <td colspan>{{ trans('unknown') }}</td>", |
|||
" </tr>", |
|||
"{% for i in range(15, 150, 15) %}", |
|||
" <tr>", |
|||
" <td>{{ markerLine(evaluate({ \"maxspeed\": (i * 1.60934)|round }))|raw }}</td>", |
|||
" <td>{{ i }}mph</td>", |
|||
" </tr>", |
|||
"{% endfor %}", |
|||
" <tr>", |
|||
" <td>{{ markerLine(evaluate({ \"maxspeed\": (175 * 1.60934)|round }))|raw }}</td>", |
|||
" <td>175mph</td>", |
|||
" </tr>", |
|||
" <tr>", |
|||
" <td>{{ markerLine(evaluate({ \"maxspeed\": (200 * 1.60934)|round }))|raw }}</td>", |
|||
" <td>≥200mph</td>", |
|||
" </tr>", |
|||
"</table>", |
|||
"</div>" |
|||
] |
|||
} |
@ -0,0 +1,40 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"de": "Erneuerbare Energien", |
|||
"en": "Renewables", |
|||
"fr": "Énergies renouvelables", |
|||
"hu": "Megújuló energia", |
|||
"pt-br": "Renováveis" |
|||
}, |
|||
"query": { |
|||
"11": [ |
|||
"(", |
|||
"node[power~\"^(plant)$\"][\"plant:source\"~\"^(wind|solar|biomass|hydro|geothermal|biogas|biofuel)$\"];", |
|||
"way[power~\"^(plant)$\"][\"plant:source\"~\"^(wind|solar|biomass|hydro|geothermal|biogas|biofuel)$\"];", |
|||
"relation[power~\"^(plant)$\"][\"plant:source\"~\"^(wind|solar|biomass|hydro|geothermal|biogas|biofuel)$\"];", |
|||
")", |
|||
"" |
|||
], |
|||
"15": [ |
|||
"(", |
|||
"node[power~\"^(plant)$\"][\"plant:source\"~\"^(wind|solar|biomass|hydro|geothermal|biogas|biofuel)$\"];", |
|||
"way[power~\"^(plant)$\"][\"plant:source\"~\"^(wind|solar|biomass|hydro|geothermal|biogas|biofuel)$\"];", |
|||
"relation[power~\"^(plant)$\"][\"plant:source\"~\"^(wind|solar|biomass|hydro|geothermal|biogas|biofuel)$\"];", |
|||
"node[power~\"^(generator)$\"][\"generator:source\"~\"^(wind|solar|biomass|hydro|geothermal|biogas|biofuel)$\"];", |
|||
"way[power~\"^(generator)$\"][\"generator:source\"~\"^(wind|solar|biomass|hydro|geothermal|biogas|biofuel)$\"];", |
|||
"relation[power~\"^(generator)$\"][\"generator:source\"~\"^(wind|solar|biomass|hydro|geothermal|biogas|biofuel)$\"];", |
|||
")" |
|||
] |
|||
}, |
|||
"feature": { |
|||
"description": "{{ tagTrans('power', tags.power) }}{% set x='generator:source' %}{% if tags[x] %}, {{ tagTransList('generator:source', tags[x]) }}{% endif %}", |
|||
"popupDescription": "{{ tagTrans('power', tags.power) }}", |
|||
"body": [ |
|||
"{% set x='generator:source' %}{% if tags[x] %}<br/>{{ keyTrans('generator:source') }}: {{ tagTransList('generator:source', tags[x]) }}{% endif %}", |
|||
"{% set x='generator:method' %}{% if tags[x] %}<br/>{{ keyTrans('generator:method') }}: {{ tagTransList('generator:method', tags[x]) }}{% endif %}", |
|||
"{% set x='generator:type' %}{% if tags[x] %}<br/>{{ tagTransList('generator:type') }}: {{ tagTrans('generator:type', tags[x]) }}{% endif %}" |
|||
], |
|||
"priority": "{% if tags.power == 'plant' %}0{% elseif tags.power == 'generator' or tags.power == 'line' %}1{% elseif tags.power == 'substation' %}2{% else %}3{% endif %}" |
|||
} |
|||
} |
@ -0,0 +1,143 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"de": "Schwimmen und Baden", |
|||
"en": "Swimming and bathing", |
|||
"fr": "Natation, baignade et bains", |
|||
"hu": "Fürdőzés, úszás", |
|||
"pt-br": "Natação e banho" |
|||
}, |
|||
"query": { |
|||
"13": [ |
|||
"(", |
|||
"nwr[leisure=swimming_area];", |
|||
"nwr[natural~\"^(water)\"][sport~\"^(|.*;)swimming(.*|)$\"];", |
|||
"nwr[natural~\"^(beach)\"];", |
|||
"nwr[leisure~\"^(water_park|beach_resort)$\"];", |
|||
"nwr[leisure=sports_centre][sport~\"^(|.*;)swimming(.*|)$\"];", |
|||
"nwr[amenity=public_bath];", |
|||
"nwr[tourism=spa_resort];", |
|||
")" |
|||
], |
|||
"16": [ |
|||
"(", |
|||
"nwr[leisure=swimming_area];", |
|||
"nwr[natural~\"^(water)\"][sport~\"^(|.*;)swimming(.*|)$\"];", |
|||
"nwr[natural~\"^(beach)\"];", |
|||
"nwr[leisure~\"^(water_park|beach_resort)$\"];", |
|||
"nwr[leisure=sports_centre][sport~\"^(|.*;)swimming(;.*|)$\"];", |
|||
"nwr[amenity~\"^(public_bath|shower)$\"];", |
|||
"nwr[tourism=spa_resort];", |
|||
"", |
|||
"nwr[leisure=swimming_pool][access!=private];", |
|||
"nwr[leisure=sauna];", |
|||
")" |
|||
] |
|||
}, |
|||
"feature": { |
|||
"pre": [ |
|||
"{% set k = null %}{% set v = null %}{% set append = null %}", |
|||
"{% if tags.amenity == 'public_bath' %}", |
|||
" {% set k = 'amenity' %}", |
|||
" {% set v = 'public_bath' %}", |
|||
" {% if attribute(tags, 'bath:type') %}{% set append = tagTrans('bath:type', attribute(tags, 'bath:type')) %}{% endif %}", |
|||
"{% elseif tags.amenity == 'shower' %}", |
|||
" {% set k = 'amenity' %}", |
|||
" {% set v = 'shower' %}", |
|||
"{% elseif tags.tourism == 'spa_resort' %}", |
|||
" {% set k = 'tourism' %}", |
|||
" {% set v = tags.tourism %}", |
|||
"{% elseif tags.leisure == 'sauna' %}", |
|||
" {% set k = 'leisure' %}", |
|||
" {% set v = tags.leisure %}", |
|||
" {% if tags.sauna and tags.sauna != 'yes' %}{% set append = tagTransList('sauna', tags.sauna) %}{% endif %}", |
|||
"{% elseif tags.leisure == 'sports_centre' %}", |
|||
" {% set k = 'leisure' %}", |
|||
" {% set v = tags.leisure %}", |
|||
" {% set append = tagTrans('sport', 'swimming') %}", |
|||
"{% elseif tags.leisure %}", |
|||
" {% set k = 'leisure' %}", |
|||
" {% set v = tags.leisure %}", |
|||
"{% elseif tags.natural %}", |
|||
" {% set k = 'natural' %}", |
|||
" {% set v = tags.natural %}", |
|||
" {% if tags.sport %}{% set append = tagTrans('sport', 'swimming') %}{% endif %}", |
|||
"{% endif %}" |
|||
], |
|||
"description": [ |
|||
"{{ tagTrans(k, v) }}", |
|||
"{% if append %}({{ append }}){% endif %}" |
|||
], |
|||
"markerSign": "{{ const[k ~ '=' ~ v].sign|raw }}", |
|||
"priority": "{% if tags.name %}0{% else %}1{% endif %}" |
|||
}, |
|||
"info": [ |
|||
"<table>", |
|||
"{% for value, data in const %}", |
|||
"{% if data.zoom <= map.zoom %}", |
|||
" <tr>", |
|||
" <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>", |
|||
" <td title=\"{% if data.taginfo %}{{ data.taginfo }}{% else %}{{ value }}{% endif %}\">", |
|||
" {{ keyTrans(value) }}", |
|||
" {% if data.append %}({{ trans(data.append) }}){% endif %}", |
|||
" </td>", |
|||
" </tr>", |
|||
"{% endif %}", |
|||
"{% endfor %}", |
|||
"</table>" |
|||
], |
|||
"const": { |
|||
"leisure=swimming_area": { |
|||
"zoom": 13, |
|||
"sign": "<img data-src='maki:swimming?size=11&fill=blue'>" |
|||
}, |
|||
"leisure=water_park": { |
|||
"zoom": 13, |
|||
"sign": "<img data-src='maki:swimming'>" |
|||
}, |
|||
"leisure=beach_resort": { |
|||
"zoom": 13, |
|||
"sign": "<img data-src='temaki:beach'>" |
|||
}, |
|||
"leisure=sports_centre": { |
|||
"zoom": 13, |
|||
"append": "tag:sport=swimming", |
|||
"taginfo": "leisure=swimming_area, sport=swimming", |
|||
"sign": "<img data-src='maki:basketball'>" |
|||
}, |
|||
"natural=water": { |
|||
"zoom": 13, |
|||
"append": "tag:sport=swimming", |
|||
"taginfo": "natural=water, sport=swimming", |
|||
"sign": "<i style='color: blue' class=\"fas fa-water\"></i>" |
|||
}, |
|||
"natural=beach": { |
|||
"zoom": 13, |
|||
"sign": "<img data-src='temaki:beach?fill=green'>" |
|||
}, |
|||
"amenity=public_bath": { |
|||
"zoom": 13, |
|||
"taginfo": "amenity=public_bath, bath:type=*", |
|||
"sign": "<i class=\"fa fa-bath\" style='color: black' aria-hidden=\"true\"></i>" |
|||
}, |
|||
"tourism=spa_resort": { |
|||
"zoom": 13, |
|||
"sign": "<i class=\"fa fa-bath\" style='color: blue' aria-hidden=\"true\"></i>" |
|||
}, |
|||
"leisure=swimming_pool": { |
|||
"zoom": 16, |
|||
"append": "tag:access!=private", |
|||
"taginfo": "leisure=swimming_pool, access!=private", |
|||
"sign": "<i style='font-size: 80%; color: black;' class='fas fa-swimming-pool'></i>" |
|||
}, |
|||
"leisure=sauna": { |
|||
"zoom": 16, |
|||
"taginfo": "leisure=sauna, sauna:type=*", |
|||
"sign": "<i class=\"fa fa-thermometer-full\" aria-hidden=\"true\"></i>" |
|||
}, |
|||
"amenity=shower": { |
|||
"zoom": 16, |
|||
"sign": "🚿 " |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,95 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"de": "Weihnachten", |
|||
"en": "Christmas", |
|||
"fr": "Noël", |
|||
"hu": "Karácsony", |
|||
"pt-br": "Natal" |
|||
}, |
|||
"query": { |
|||
"13": [ |
|||
"(", |
|||
"node[\"xmas:feature\"];", |
|||
"way[\"xmas:feature\"];", |
|||
"relation[\"xmas:feature\"];", |
|||
")" |
|||
] |
|||
}, |
|||
"feature": { |
|||
"pre": [ |
|||
"{% set isCurrent = meta.timestamp >= \"now\"|date_modify('-10 month')|date('Y') %}", |
|||
"{% set bgColor = isCurrent ? '#f2756a' : 'red' %}" |
|||
], |
|||
"title": "{{ attribute(tags, \"xmas:name\")|default(trans(\"unnamed\")) }}", |
|||
"description": "{{ tagTransList(\"xmas:feature\", attribute(tags, \"xmas:feature\")) }}", |
|||
"body": [ |
|||
"{% if not isCurrent %}", |
|||
"<div style='border: 1px solid red; padding: 2px; margin-bottom: 2px;'>{{ repoTrans('xmas:outdated-warning') }}</div>", |
|||
"{% endif %}", |
|||
"", |
|||
"{% if attribute(tags, 'xmas:location') %}", |
|||
"<li class='hasSymbol'>", |
|||
" <i class=\"fa fa-globe\" aria-hidden=\"true\"></i>", |
|||
" <span class='key'>{{ keyTrans('location') }}:</span>", |
|||
" <span class='value'>", |
|||
" {{ attribute(tags, 'xmas:location') }}", |
|||
" </span>", |
|||
"</li>", |
|||
"{% endif %}", |
|||
"", |
|||
"{% if attribute(tags, 'xmas:day_date') %}", |
|||
"<li class='hasSymbol'>", |
|||
" <i class=\"fa fa-clock-o\" aria-hidden=\"true\"></i>", |
|||
" <span class='key'>Open:</span>", |
|||
" <span class='value'>", |
|||
" {{ attribute(tags, 'xmas:day_date') }}", |
|||
" </span>", |
|||
"</li>", |
|||
"{% endif %}", |
|||
"", |
|||
"{% if attribute(tags, 'xmas:opening_hours') %}", |
|||
"<li class='hasSymbol'>", |
|||
" <i class=\"fa fa-clock-o\" aria-hidden=\"true\"></i>", |
|||
" <span class='key'>{{ keyTrans('opening_hours') }}:</span>", |
|||
" <span class='value'>", |
|||
" {{ attribute(tags, 'xmas:opening_hours') }}", |
|||
" </span>", |
|||
"</li>", |
|||
"{% endif %}", |
|||
"", |
|||
"{% if attribute(tags, 'xmas:url') %}", |
|||
"<li class='hasSymbol'>", |
|||
" <i class=\"fa fa-globe\" aria-hidden=\"true\"></i>", |
|||
" <span class='key'>{{ keyTrans('website') }}:</span>", |
|||
" <span class='value'>", |
|||
" <a target='_blank' href='{{ attribute(tags, 'xmas:url')|websiteUrl }}'>{{ attribute(tags, 'xmas:url') }}</a>", |
|||
" </span>", |
|||
"</li>", |
|||
"{% endif %}" |
|||
], |
|||
"markerSign": "{{ attribute(const, attribute(tags, 'xmas:feature'))|raw }}", |
|||
"markerSymbol": "{{ markerPointer({\"fillColor\":bgColor})|raw }}", |
|||
"listMarkerSymbol": "{{ markerCircle({\"fillColor\":bgColor})|raw }}" |
|||
}, |
|||
"const": { |
|||
"market": "<img data-src='maki:commercial'>", |
|||
"tree": "<i class=\"fa fa-tree\" aria-hidden=\"true\"></i>", |
|||
"shop": "<i class=\"fa fa-shopping-basket\" aria-hidden=\"true\"></i>", |
|||
"event": "<img data-src='maki:amusement-park'>" |
|||
}, |
|||
"info": [ |
|||
"<table>", |
|||
"{% for value, icon in const %}", |
|||
" <tr>", |
|||
" <td>{{ markerCircle({})|raw }}<div class='sign'>{{ icon|raw }}</div></td>", |
|||
" <td>{{ tagTrans('xmas:feature', value) }}</td>", |
|||
" </tr>", |
|||
"{% endfor %}", |
|||
" <tr>", |
|||
" <td>{{ markerCircle({\"fillColor\":\"red\"})|raw }}</td>", |
|||
" <td>{{ repoTrans('outdated feature') }}</td>", |
|||
" </tr>", |
|||
"</table>" |
|||
] |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue