Main categories of OpenStreetBrowser
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.

64 lines
1.5 KiB

  1. type: overpass
  2. query:
  3. 15: |-
  4. (
  5. nwr[shop^supermarket];
  6. nwr[shop^convenience];
  7. nwr[shop^dairy];
  8. nwr[shop^farm];
  9. nwr[shop^greengrocer];
  10. nwr[shop^health_food];
  11. )
  12. feature:
  13. pre: |-
  14. {% set shop0 = tags.shop|split(';')[0] %}
  15. {% set current = const.default %}
  16. {% if const.shops[shop0] %}
  17. {% set current = const.shops[shop0] %}
  18. {% endif %}
  19. description: |-
  20. {% if tags.shop == 'yes' %}
  21. {{ keyTrans('shop') }}
  22. {% else %}
  23. {{ tagTransList('shop', tags.shop) }}
  24. {% endif %}
  25. markerSign: |-
  26. {% set c = current.sign %}
  27. {% if c|slice(0, 4) == 'fas:' %}
  28. <i class="fas fa-{{ c|slice(4) }}"></i>
  29. {% elseif c|slice(0, 4) == 'far:' %}
  30. <i class="far fa-{{ c|slice(4) }}"></i>
  31. {% elseif c|slice(0, 5) == 'maki:' %}
  32. <img data-src="{{ c }}">
  33. {% else %}
  34. {{ c|raw }}
  35. {% endif %}
  36. const:
  37. default:
  38. sign: fas:shopping-bag
  39. shops:
  40. dairy:
  41. sign: fas:chesse
  42. farm:
  43. sign: fas:wheat-awn
  44. greengrocer:
  45. sign: fas:carrot
  46. convenience:
  47. sign: fas:shopping-basket
  48. supermarket:
  49. sign: fas:shopping-cart
  50. health_food:
  51. sign: fas:apple-whole
  52. filter:
  53. shop:
  54. name: |-
  55. {{ trans("filter:type") }}
  56. type: select
  57. show_default: true
  58. values: |-
  59. {% set list = [] %}
  60. {% for k, v in const.shops %}
  61. <option value="{{ k }}">{% set list = list|merge([ k ]) %}{{ tagTrans("shop", k) }}</option>
  62. {% endfor %}
  63. sort: natsort
  64. op: has