Igor Eliezer
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
35 changed files with 619 additions and 55 deletions
-
1car_routes.json
-
4children.json
-
4coal.json
-
70cycle_routes.json
-
4electric_power.json
-
16index.json
-
6lang/ast.json
-
6lang/ca.json
-
6lang/cs.json
-
6lang/de.json
-
6lang/el.json
-
6lang/en.json
-
6lang/es.json
-
6lang/et.json
-
22lang/fr.json
-
6lang/hu.json
-
6lang/it.json
-
6lang/ja.json
-
6lang/nl.json
-
6lang/pl.json
-
20lang/pt-br.json
-
6lang/pt.json
-
6lang/ro.json
-
6lang/ru.json
-
6lang/template.json
-
6lang/uk.json
-
4memorial.json
-
2mtb-routes.json
-
45office.json
-
6oil_gas.json
-
64power_routes.json
-
85pt.json
-
4renewables.json
-
134swimming_bathing.json
-
81xmas.json
@ -0,0 +1,45 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"de": "Ämter, Dienst- und Geschäftsstellen", |
|||
"en": "Offices", |
|||
"fr": "Bureaux" |
|||
}, |
|||
"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,64 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"en": "Power routes", |
|||
"fr": "Réseaux électriques" |
|||
}, |
|||
"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,134 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"de": "Schwimmen und Baden", |
|||
"en": "Swimming and bathing", |
|||
"fr": "Natation/Baignade/Bains" |
|||
}, |
|||
"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];", |
|||
"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.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>" |
|||
}, |
|||