Main categories of OpenStreetBrowser with support for whitewater
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.
 
 

107 lines
3.2 KiB

{
"type": "overpass",
"name": {
"ast": "Servicios educativos",
"cs": "Vzdělávací služby",
"de": "Bildungseinrichtungen",
"el": "Υπηρεσίες Εκπαίδευσης",
"en": "Educational Services",
"et": "Haridusteenused",
"fr": "Services éducatifs",
"it": "Istruzione",
"ja": "教育サービス",
"nl": "Onderwijs",
"pl": "Edukacyjne",
"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)$'];",
")"
],
"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)$'];",
")"
]
},
"feature": {
"description": "{{ tagTrans('amenity', tags.amenity) }}",
"body": "{% if tags.operator %}{{ keyTrans('operator') }}: {{ tags.operator }}<br/>{% endif %}",
"markerSign": [
"{% set data = const[tags.amenity] %}",
"{% if data %}",
"{{ data.sign }}",
"{% endif %}"
],
"priority": [
"{% set data = const[tags.amenity] %}",
"{% if data %}",
"{{ data.priority }}",
"{% endif %}"
]
},
"info": [
"<table>",
"{% for value, data in const %}",
"{% if data.zoom <= map.zoom %}",
" <tr>",
" <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign }}</div></td>",
" <td>{{ tagTrans('amenity', value) }}</td>",
" </tr>",
"{% endif %}",
"{% endfor %}",
"</table>"
],
"const": {
"university": {
"priority": 0,
"sign": "🎓",
"zoom": 11
},
"college": {
"priority": 1,
"sign": "🎓",
"zoom": 11
},
"library": {
"priority": 2,
"sign": "🕮",
"zoom": 11
},
"school": {
"priority": 3,
"sign": "🏫",
"zoom": 14
},
"language_school": {
"priority": 3,
"sign": "🏫",
"zoom": 14
},
"kindergarten": {
"priority": 4,
"sign": "⛹",
"zoom": 14
},
"public_bookcase": {
"priority": 5,
"sign": "📚",
"zoom": 16
}
}
}