Some examples how to develop own categories.
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.

27 lines
914 B

2 years ago
2 years ago
2 years ago
  1. type: overpass
  2. # Adding a category name (in English: "Example 3")
  3. name:
  4. en: Example 3
  5. query:
  6. 15: nwr[amenity=fountain]
  7. # This query uses a regular expression to match either fountain or drinking_water:
  8. 17: nwr[amenity~"^(fountain|drinking_water)$"]
  9. feature:
  10. description: |
  11. {{ tagTrans('amenity', tags.amenity) }}
  12. # Here, the correct icon for display is read from the 'const' structure
  13. markerSign: |
  14. {{ const[tags.amenity].icon }}
  15. # We can use different markers depending on the type of item
  16. markerSymbol: |
  17. {{ markerPointer({ fillColor: const[tags.amenity].color }) }}
  18. # This is for the marker in the listing in the sidebar
  19. listMarkerSymbol: |
  20. {{ markerCircle({ fillColor: const[tags.amenity].color }) }}
  21. const:
  22. fountain:
  23. icon:
  24. color: '#0000ff' # need to quote, because YAML would treat the color as comment
  25. drinking_water:
  26. icon: 🚰
  27. color: '#007fff'