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.4 KiB
85 lines
2.4 KiB
{
|
|
"type": "overpass",
|
|
"name": {
|
|
"ca": "Llei",
|
|
"cs": "Právo",
|
|
"de": "Juristische Institutionen",
|
|
"en": "Law",
|
|
"es": "Ley",
|
|
"fr": "Services législatifs",
|
|
"gl": "Leis",
|
|
"hu": "Jog",
|
|
"it": "Legge",
|
|
"ja": "法律",
|
|
"nb": "Lov",
|
|
"nl": "Juridische diensten",
|
|
"oc": "Lèi",
|
|
"pl": "Prawo",
|
|
"pt": "Direito",
|
|
"pt-br": "Direito",
|
|
"ru": "Юристы",
|
|
"sr": "Закон",
|
|
"tr": "Hukuk"
|
|
},
|
|
"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
|
|
}
|
|
},
|
|
"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 %}"
|
|
}
|
|
}
|
|
}
|