forked from OpenStreetBrowser/main
Stephan Bösch-Plepelits
6 years ago
11 changed files with 458 additions and 136 deletions
-
72communication.json
-
50cycle_routes.json
-
51education.json
-
56financial.json
-
6index.json
-
59law.json
-
80organisations.json
-
94pt.json
-
51public.json
-
4religion.json
-
71tourism_services.json
@ -0,0 +1,59 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"en": "Law" |
|||
}, |
|||
"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 |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,80 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"en": "Organisations" |
|||
}, |
|||
"query": { |
|||
"13": [ |
|||
"(", |
|||
"nwr[office~\"^(ngo|quango|political_party|association|charity)$\"];", |
|||
")" |
|||
] |
|||
}, |
|||
"feature": { |
|||
"pre": [ |
|||
"{% set key = 'office' %}", |
|||
"{% set value = tags.office %}", |
|||
"" |
|||
], |
|||
"description": "{{ tagTrans(key, value) }}", |
|||
"body": "{% if tags.operator %}{{ keyTrans('operator') }}: {{ tags.operator }}<br/>{% endif %}", |
|||
"markerSign": [ |
|||
"{% set data = const[key ~ '=' ~ value] %}", |
|||
"{% if data %}", |
|||
"{{ data.sign|raw }}", |
|||
"{% endif %}" |
|||
], |
|||
"priority": [ |
|||
"{% set data = const[key ~ '=' ~ value] %}", |
|||
"{% if data %}", |
|||
"{{ data.priority }}", |
|||
"{% endif %}" |
|||
] |
|||
}, |
|||
"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": { |
|||
"office=ngo": { |
|||
"priority": 0, |
|||
"sign": "<i class='fas fa-users'></i>", |
|||
"zoom": 13 |
|||
}, |
|||
"office=quango": { |
|||
"priority": 0, |
|||
"sign": "<i class='fas fa-users'></i>", |
|||
"zoom": 13 |
|||
}, |
|||
"office=political_party": { |
|||
"priority": 0, |
|||
"sign": "<i class='fas fa-flag'></i>", |
|||
"zoom": 13 |
|||
}, |
|||
"office=association": { |
|||
"priority": 0, |
|||
"sign": "<i class='fas fa-people-carry'></i>", |
|||
"zoom": 13 |
|||
}, |
|||
"office=foundation": { |
|||
"priority": 0, |
|||
"sign": "<i class='fas fa-people-carry'></i>", |
|||
"zoom": 13 |
|||
}, |
|||
"office=charity": { |
|||
"priority": 0, |
|||
"sign": "<i class='fas fa-hands-helping'></i>", |
|||
"zoom": 13 |
|||
} |
|||
} |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue