forked from plepe/openstreetbrowser-categories-main
-
Notifications
You must be signed in to change notification settings - Fork 0
/
communication.json
76 lines (76 loc) · 2.39 KB
/
communication.json
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": {
"ast": "Comunicaciones",
"ca": "Comunicacions",
"cs": "Komunikace",
"de": "Kommunikation",
"el": "Επικοινωνίες",
"en": "Communication",
"et": "Kommunikatsioon",
"fr": "Communication",
"hu": "Kommunikácó",
"it": "Communicazioni",
"ja": "交流",
"nl": "Communicatie",
"ro": "Comunicatii",
"ru": "Услуги связи",
"uk": "Телекомунікації"
},
"query": {
"13": [
"(",
"node[amenity~'^(post_office|internet_cafe)$'];",
"way[amenity~'^(post_office|internet_cafe)$'];",
"relation[amenity~'^(post_office|internet_cafe)$'];",
");"
],
"16": [
"(node[amenity~'^(post_office|internet_cafe|post_box|telephone)$'];",
"way[amenity~'^(post_office|internet_cafe)$'];",
"relation[amenity~'^(post_office|internet_cafe)$'];",
");"
]
},
"feature": {
"title": "{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) |default(tagTrans('amenity', tags.amenity)) }}",
"description": "{{ tagTrans('amenity', tags.amenity) }}",
"body": "{% if tags.operator %}{{ keyTrans('operator') }}: {{ localizedTag(tags, 'operator') }}<br/>{% endif %}",
"markerSign": [
"{% set data = const[tags.amenity] %}",
"{% if data %}",
"{{ data.sign|raw }}",
"{% endif %}"
]
},
"info": [
"<table>",
"{% for value, data in const %}",
"{% if data.zoom <= map.zoom %}",
" <tr>",
" <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
" <td>{{ tagTrans('amenity', value) }}</td>",
" </tr>",
"{% endif %}",
"{% endfor %}",
"</table>"
],
"const": {
"post_office": {
"sign": "<img src='maki:post?size=15'>",
"zoom": 13
},
"post_box": {
"sign": "<img src='maki:post?size=11'>",
"zoom": 16
},
"internet_cafe": {
"sign": "<i class='fa fa-laptop' aria-hidden='true'></i>",
"zoom": 13
},
"telephone": {
"sign": "<img src='maki:telephone'>",
"zoom": 16
}
}
}