You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
141 lines
4.5 KiB
141 lines
4.5 KiB
{
|
|
"type": "overpass",
|
|
"name": {
|
|
"ast": "Servicios educativos",
|
|
"cs": "Vzdělávací služby",
|
|
"de": "Bildungseinrichtungen",
|
|
"el": "Υπηρεσίες Εκπαίδευσης",
|
|
"en": "Educational Services",
|
|
"et": "Haridusteenused",
|
|
"fr": "Éducation",
|
|
"hu": "Oktatás",
|
|
"it": "Istruzione",
|
|
"ja": "教育サービス",
|
|
"nl": "Onderwijs",
|
|
"pl": "Edukacyjne",
|
|
"pt": "Educação",
|
|
"pt-br": "Educação",
|
|
"ro": "Servicii educatie",
|
|
"ru": "Образование",
|
|
"uk": "Освіта"
|
|
},
|
|
"query": {
|
|
"11": [
|
|
"(",
|
|
"node[amenity~'^(college|university|library)$'];",
|
|
"way[amenity~'^(college|university|library)$'];",
|
|
"relation[amenity~'^(college|university|library)$'];",
|
|
")"
|
|
],
|
|
"14": [
|
|
"(",
|
|
"node[amenity~'^(college|university|library|school|kindergarten|language_school)$'];",
|
|
"way[amenity~'^(college|university|library|school|kindergarten|language_school)$'];",
|
|
"relation[amenity~'^(college|university|library|school|kindergarten|language_school)$'];",
|
|
"nwr[office~\"^(educational_institution|research)$\"];",
|
|
")"
|
|
],
|
|
"16": [
|
|
"(",
|
|
"node[amenity~'^(college|university|library|school|kindergarten|public_bookcase)$'];",
|
|
"way[amenity~'^(college|university|library|school|kindergarten|public_bookcase)$'];",
|
|
"relation[amenity~'^(college|university|library|school|kindergarten|public_bookcase)$'];",
|
|
"nwr[office~\"^(educational_institution|research)$\"];",
|
|
")"
|
|
]
|
|
},
|
|
"feature": {
|
|
"pre": [
|
|
"{% if tags.office == 'educational_institution' or tags.office == 'research' %}",
|
|
" {% set key = 'office' %}",
|
|
" {% set value = tags.office %}",
|
|
"{% else %}",
|
|
" {% set key = 'amenity' %}",
|
|
" {% set value = tags.amenity %}",
|
|
"{% endif %}"
|
|
],
|
|
"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": {
|
|
"amenity=university": {
|
|
"priority": 0,
|
|
"sign": "🎓",
|
|
"zoom": 11
|
|
},
|
|
"amenity=college": {
|
|
"priority": 1,
|
|
"sign": "🎓",
|
|
"zoom": 11
|
|
},
|
|
"amenity=library": {
|
|
"priority": 2,
|
|
"sign": "🕮",
|
|
"zoom": 11
|
|
},
|
|
"amenity=school": {
|
|
"priority": 3,
|
|
"sign": "🏫",
|
|
"zoom": 14
|
|
},
|
|
"amenity=language_school": {
|
|
"priority": 3,
|
|
"sign": "🏫",
|
|
"zoom": 14
|
|
},
|
|
"amenity=kindergarten": {
|
|
"priority": 4,
|
|
"sign": "⛹",
|
|
"zoom": 14
|
|
},
|
|
"amenity=public_bookcase": {
|
|
"priority": 5,
|
|
"sign": "📚",
|
|
"zoom": 16
|
|
},
|
|
"office=educational_institution": {
|
|
"priority": 3,
|
|
"sign": "🏢",
|
|
"zoom": 14
|
|
},
|
|
"office=research": {
|
|
"priority": 3,
|
|
"sign": "<i class='fas fa-vials'></i>",
|
|
"zoom": 14
|
|
}
|
|
},
|
|
"filter": {
|
|
"type": {
|
|
"name": "{{ trans('filter:type') }}",
|
|
"show_default": "true",
|
|
"type": "select",
|
|
"values": "{% for k, v in const %}<option value=\"{{ k }}\" query=\"nwr[{{ k }}]\" minzoom=\"{{ v.zoom }}\">{{ tagTrans(k) }}</option>{% endfor %}"
|
|
}
|
|
}
|
|
}
|