Main categories of OpenStreetBrowser
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.

85 lines
2.3 KiB

{
"type": "overpass",
"name": {
"ast": "Recréu",
"cs": "Volný čas",
"de": "Freizeit",
"el": "Αναψυχή",
"en": "Leisure",
"fr": "Loisirs",
"it": "Tempo libero",
"ja": "レジャー",
"nl": "Vrije tijd",
"ro": "Timp liber",
"ru": "Досуг",
"uk": "Дозвілля"
},
"query": {
"15": [
"(",
"node[leisure];",
"way[leisure];",
"relation[leisure];",
")"
]
},
"feature": {
"description": [
"{{ tagTrans('leisure', tags.leisure) }}",
"{% if tags.leisure == 'pitch' and tags.sport %}",
"- {{ tagTransList('sport', tags.sport) }}",
"{% endif %}"
],
"markerSign": [
"{% if const[tags.leisure] %}",
"{{ const[tags.leisure].sign|raw }}",
"{% endif %}"
],
"markerSymbol": [
"{% if const[tags.leisure] %}",
"{{ markerPointer(const[tags.leisure].symbol)|raw }}",
"{% else %}",
"{{ markerPointer({})|raw }}",
"{% endif %}"
],
"listMarkerSymbol": [
"{% if const[tags.leisure] %}",
"{{ markerCircle(const[tags.leisure].symbol)|raw }}",
"{% else %}",
"{{ markerCircle({})|raw }}",
"{% endif %}"
]
},
"info": [
"<table>",
"{% for value, data in const %}",
" <tr>",
" <td>{{ markerCircle(data.symbol)|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
" <td>{{ tagTrans('leisure', value) }}</td>",
" </tr>",
"{% endfor %}",
" <tr>",
" <td>{{ markerCircle({})|raw }}</td>",
" <td>{{ trans('other') }}</td>",
" </tr>",
"</table>"
],
"const": {
"garden": {
"symbol": {
"fillColor": "#00cf00"
},
"sign": "<img src='maki:garden'>"
},
"park": {
"symbol": {
"fillColor": "#00cf00"
},
"sign": "<img src='maki:park'>"
},
"playground": {
"symbol": {},
"sign": "<img src='maki:playground'>"
}
}
}