-
Notifications
You must be signed in to change notification settings - Fork 11
/
law.yaml
76 lines (75 loc) · 1.62 KB
/
law.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
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: |-
(
nwr[amenity^courthouse];
nwr[office^lawyer];
nwr[office^notary];
)
feature:
pre: |-
{% set key = null %}
{% set value = null %}
{% for k, d in const %}
{% set kv = k|split('=') %}
{% if attribute(tags, kv[0]) and kv[1] in attribute(tags, kv[0])|split(';') %}
{% set key = kv[0] %}
{% set value = kv[1] %}
{% endif %}
{% endfor %}
description: '{{ tagTransList(key, attribute(tags, key)) }}'
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|replace({ '=': '^' }) }}]" minzoom="{{ v.zoom }}">
{{ tagTrans(k) }}
</option>
{% endfor %}