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.

34 lines
892 B

2 years ago
  1. name:
  2. en: Example 4
  3. de: Beispiel 4
  4. query:
  5. 15: nwr[amenity=fountain]
  6. 17: nwr[amenity~"^(fountain|drinking_water)$"]
  7. feature:
  8. description: |
  9. {{ tagTrans('amenity', tags.amenity) }}
  10. # Here, the correct icon for display is read from the 'const' structure
  11. markerSign: |
  12. {{ const[tags.amenity].icon }}
  13. markerSymbol: |
  14. {{ markerPointer({ fillColor: const[tags.amenity].color }) }}
  15. listMarkerSymbol: |
  16. {{ markerCircle({ fillColor: const[tags.amenity].color }) }}
  17. info: |
  18. <table>
  19. {% for value, data in const if data.zoom <= map.zoom %}
  20. <tr>
  21. <td>{{ markerCircle({ fillColor: data.color }) }}<div class='sign'>{{ data.icon }}</div></td>
  22. <td>{{ tagTrans('amenity', value) }}</td>
  23. </tr>
  24. {% endfor %}
  25. </table>
  26. const:
  27. fountain:
  28. icon:
  29. color: '#0000ff'
  30. zoom: 15
  31. drinking_water:
  32. icon: 🚰
  33. color: '#007fff'
  34. zoom: 17