Browse Source

Specify many filters

filter
parent
commit
41963c0658
  1. 38
      children.json
  2. 8
      communication.json
  3. 8
      craft.json
  4. 3
      culture.json
  5. 8
      education.json
  6. 3
      emergency.json
  7. 8
      financial.json
  8. 3
      gastro.json
  9. 8
      health.json
  10. 5
      historic.json
  11. 8
      law.json
  12. 2
      memorial.json
  13. 8
      office.json
  14. 8
      organisations.json
  15. 9
      places.json
  16. 8
      public.json
  17. 92
      religion.json
  18. 9
      shop.json
  19. 8
      sport.json
  20. 8
      swimming_bathing.json
  21. 11
      tourism_attractions.json
  22. 8
      tourism_services.json

38
children.json

@ -81,5 +81,41 @@
" <td>{{ tagTrans('amenity', 'toilets diaper=yes') }}</td>",
" </tr>",
"</table>"
]
],
"filter": {
"type": {
"name": "{{ trans('filter:type') }}",
"type": "select",
"values": {
"playground": {
"name": "{{ tagTrans('leisure', 'playground') }}",
"query": "nwr[leisure=playground]"
},
"indoor_play": {
"name": "{{ tagTrans('leisure', 'indoor_play') }}",
"query": "nwr[leisure=indoor_play]"
},
"summer_camp": {
"name": "{{ tagTrans('leisure', 'summer_camp') }}",
"query": "nwr[leisure=summer_camp]"
},
"kids_area": {
"name": "{{ keyTrans('kids_area') }}",
"query": "nwr[kids_area]"
},
"shop_baby_goods": {
"name": "{{ tagTrans('shop', 'baby_goods') }}",
"query": "nwr[shop=baby_goods]"
},
"shop_toys": {
"name": "{{ tagTrans('shop', 'toys') }}",
"query": "nwr[shop=toys]"
},
"toilets": {
"name": "{{ tagTrans('amenities', 'toilets diaper=yes') }}",
"query": "nwr[amenity=toilets][diaper]"
}
}
}
}
}

8
communication.json

@ -130,5 +130,13 @@
"sign": "<img src='maki:telephone'>",
"zoom": 16
}
},
"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 %}"
}
}
}

8
craft.json

@ -73,5 +73,13 @@
"window_construction": "",
"winery": "🍷"
}
},
"filter": {
"craft": {
"name": "{{ trans('filter:type') }}",
"type": "select",
"show_default": "true",
"values": "{% set list = [] %}{% for t, v in const.crafts %}<option value=\"{{ t }}\">{% set list = list|merge([ t ]) %}{{ tagTrans('craft', t) }}</option>{% endfor %}<option value='other' query='nwr[craft][craft!~\"^({{ list|join('|') }})$\"]'>{{ trans('other') }}</option>"
}
}
}

3
culture.json

@ -124,7 +124,8 @@
],
"filter": {
"type": {
"name": "Type",
"name": "{{ trans('filter:type') }}",
"show_default": "true",
"query": "nwr[{{ value }}]",
"type": "select",
"values": "{% for k, v in const %}<option value=\"{{ k }}\">{{ trans('tag:' ~ k) }}</option>{% endfor %}<option value=\"other\" query=\"nwr[amenity=fountain]\">{{ trans('other') }}</option>",

8
education.json

@ -129,5 +129,13 @@
"sign": "<i class='fas fa-vials'></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 %}"
}
}
}

3
emergency.json

@ -99,8 +99,9 @@
},
"filter": {
"type": {
"name": "{{ keyTrans('amenity') }}",
"name": "{{ trans('filter:type') }}",
"type": "select",
"show_default": "true",
"values": {
"fire_station": {
"name": "{{ tagTrans('amenity', 'fire_station') }}",

8
financial.json

@ -101,5 +101,13 @@
"sign": "<i class=\"fas fa-piggy-bank\"></i>",
"zoom": 15
}
},
"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 %}"
}
}
}

3
gastro.json

@ -49,8 +49,9 @@
"info": "{{ repoTrans('Objects with diet information') }}",
"filter": {
"amenity": {
"name": "{{ keyTrans('amenity') }}",
"name": "{{ trans('filter:type') }}",
"type": "select",
"show_default": "true",
"values": [
"bar",
"biergarten",

8
health.json

@ -88,5 +88,13 @@
"amenity=pharmacy": "<img src='maki:pharmacy'>",
"amenity=social_facility": "",
"amenity=veterinary": "<img src='maki:veterinary'>"
},
"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 %}"
}
}
}

5
historic.json

@ -117,9 +117,10 @@
"filter": {
"type": {
"key": "historic",
"name": "Type",
"show_default": "true",
"name": "{{ trans('filter:type') }}",
"type": "select",
"values": "const",
"values": "{% set list = [] %}{% for t, v in const %}<option value=\"{{ t }}\">{% set list = list|merge([ t ]) %}{{ tagTrans('historic', t) }}</option>{% endfor %}<option value='other' query='nwr[historic][historic!~\"^({{ list|join('|') }})$\"]'>{{ trans('other') }}</option>",
"valueName": "{{ tagTrans('historic', value) }}"
},
"conflict": {

8
law.json

@ -57,5 +57,13 @@
"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 %}"
}
}
}

2
memorial.json

@ -109,7 +109,7 @@
},
"filter": {
"type": {
"name": "Type",
"name": "{{ trans('filter:type') }}",
"type": "select",
"values": {
"monument": {

8
office.json

@ -43,5 +43,13 @@
"therapist": "<i class='fas fa-couch'></i>",
"travel_agent": "<i class='fas fa-plane-departure'></i>",
"publisher": "<i class='fas fa-book'></i>"
},
"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 %}"
}
}
}

8
organisations.json

@ -78,5 +78,13 @@
"sign": "<i class='fas fa-hands-helping'></i>",
"zoom": 13
}
},
"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 %}"
}
}
}

9
places.json

@ -34,5 +34,14 @@
"description": "{{ tagTrans('place', tags.place) }}",
"body": "{% if tags.population %}{{ keyTrans('population') }}: {{ tags.population }}{% endif %}",
"priority": "{% set priorities = { 'continent': 0, 'country': 1, 'state': 2, 'region': 3, 'city': 4, 'town': 5, 'village': 6, 'suburb': 7, 'hamlet': 8, 'quarter': 9, neighbourhood: 10, 'isolated_dwelling': 11, 'farm': 12 } %}{{ priorities[tags.place] }}"
},
"filter": {
"name": {
"key": [ "name", "name:*" ],
"name": "{{ keyTrans('name') }}",
"type": "text",
"change_on": "keyup",
"op": "strsearch"
}
}
}

8
public.json

@ -89,5 +89,13 @@
"amenity=townhall": "<img data-src='maki:town-hall'>",
"office=administration": "<img data-src='maki:town-hall'>",
"office=government": "<img data-src='maki:town-hall'>"
},
"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 %}"
}
}
}

92
religion.json

@ -83,14 +83,88 @@
" {{ keyTrans('denomination') }}: {{ tagTransList('denomination', tags.denomination) }}<br/>",
"{% endif %}"
],
"markerSign": [
"{% if tags.religion == 'christian' %}✝",
"{% elseif tags.religion == 'muslim' %}☪",
"{% elseif tags.religion == 'buddhist' %}☸",
"{% elseif tags.religion == 'hindu' %}ॐ",
"{% elseif tags.religion == 'jewish' %}✡",
"{% elseif tags.religion == 'pagan' %}☆",
"{% endif %}"
]
"markerSign": "{{ const.religion[tags.religion] }}"
},
"const": {
"religion": {
"christian": "✝",
"muslim": "☪",
"buddhist": "☸",
"shinto": "",
"hindu": "ॐ",
"jewish": "✡",
"taoist": "",
"sikh": "",
"none": "",
"multifaith": "",
"unitarian_universialist": "",
"spiritualist": "",
"jain": "",
"voodoo": "",
"confucian": "",
"bahai": "",
"caodaism": "",
"tenrikyo": "",
"vietnamese_folk": "",
"pagan": "☆",
"scientologist": "",
"zoroastrian": "",
"pentecostal": "",
"shamanic": ""
}
},
"filter": {
"type": {
"name": "{{ trans('filter:type') }}",
"show_default": "true",
"query": "nwr[{{ value }}]",
"type": "select",
"values": {
"place_of_worship": {
"name": "{{ tagTrans('amenity', 'place_of_worship') }}",
"query": "nwr[amenity=place_of_worship]"
},
"grave_yard": {
"name": "{{ tagTrans('amenity', 'grave_yard') }}",
"query": "nwr[amenity=grave_yard]"
},
"crematorium": {
"name": "{{ tagTrans('amenity', 'crematorium') }}",
"query": "nwr[amenity=crematorium]"
},
"cemetery": {
"name": "{{ tagTrans('landuse', 'cemetery') }}",
"query": "nwr[landuse=cemetery]"
},
"wayside_cross": {
"name": "{{ tagTrans('historic', 'wayside_cross') }}",
"query": "nwr[historic=wayside_cross]"
},
"wayside_shrine": {
"name": "{{ tagTrans('historic', 'wayside_shrine') }}",
"query": "nwr[historic=wayside_shrine]"
},
"wayside_chapel": {
"name": "{{ tagTrans('historic', 'wayside_chapel') }}",
"query": "nwr[historic=wayside_chapel]"
},
"parish": {
"name": "{{ tagTrans('office', 'parish') }}",
"query": "nwr[office=parish]"
},
"office": {
"name": "{{ tagTrans('office', 'religion') }}",
"query": "nwr[office=religion]"
}
}
},
"religion": {
"name": "{{ keyTrans('religion') }}",
"show_default": "true",
"type": "select",
"valueName": "{{ tagTrans('religion', value) }}",
"values": "{% set list = [] %}{% for t, v in const.religion %}<option value=\"{{ t }}\">{% set list = list|merge([ t ]) %}{{ tagTrans('religion', t) }}</option>{% endfor %}<option value='other' query='nwr[religion][religion!~\"^({{ list|join('|') }})$\"]'>{{ trans('other') }}</option>",
"op": "has"
}
}
}

9
shop.json

@ -150,5 +150,14 @@
"sign": "&#8986;"
}
]
},
"filter": {
"shop": {
"name": "{{ trans('filter:type') }}",
"type": "select",
"show_default": "true",
"values": "{% set list = [] %}{% for k, v in const.shops %}{% for t in v.types %}<option value=\"{{ t }}\">{% set list = list|merge([ t ]) %}{{ tagTrans('shop', t) }}</option>{% endfor %}{% endfor %}<option value='other' query='nwr[shop][shop!~\"^(|.*;)({{ list|join('|') }})(|;.*)$\"]'>{{ trans('other') }}</option>",
"op": "has"
}
}
}

8
sport.json

@ -68,5 +68,13 @@
"tennis": "🎾",
"volleyball": "🏐",
"weightlifting": "🏋"
},
"filter": {
"sport": {
"name": "{{ keyTrans('sport') }}",
"type": "select",
"show_default": "true",
"values": "{% set list = [] %}{% for t, v in const %}<option value=\"{{ t }}\">{% set list = list|merge([ t ]) %}{{ tagTrans('sport', t) }}</option>{% endfor %}<option value='other' query='nwr[sport][sport!~\"^({{ list|join('|') }})$\"]'>{{ trans('other') }}</option>"
}
}
}

8
swimming_bathing.json

@ -139,5 +139,13 @@
"zoom": 16,
"sign": "🚿 "
}
},
"filter": {
"type": {
"name": "{{ trans('filter:type') }}",
"type": "select",
"show_default": "true",
"values": "{% for k, v in const %}<option value=\"{{ k }}\" query=\"nwr[{{ k }}]\" minzoom=\"{{ v.zoom }}\">{{ tagTrans(k) }}</option>{% endfor %}"
}
}
}

11
tourism_attractions.json

@ -56,5 +56,16 @@
"theme_park": "<img data-src='maki:amusement-park'>",
"viewpoint": "<i class='fas fa-eye' aria-hidden='true'></i>",
"zoo": "🦁"
},
"filter": {
"type": {
"name": "{{ trans('filter:type') }}",
"show_default": "true",
"query": "nwr[{{ value }}]",
"type": "select",
"key": "tourism",
"values": "{% set list = [] %}{% for t, v in const %}<option value=\"{{ t }}\">{% set list = list|merge([ t ]) %}{{ tagTrans('tourism', t) }}</option>{% endfor %}",
"op": "has"
}
}
}

8
tourism_services.json

@ -141,5 +141,13 @@
"sign": "ℹ️",
"zoom": 16
}
},
"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 %}"
}
}
}
Loading…
Cancel
Save