name: en: Example 4 de: Beispiel 4 query: 15: nwr[amenity=fountain] 17: nwr[amenity~"^(fountain|drinking_water)$"] feature: description: | {{ tagTrans('amenity', tags.amenity) }} # Here, the correct icon for display is read from the 'const' structure markerSign: | {{ const[tags.amenity].icon }} markerSymbol: | {{ markerPointer({ fillColor: const[tags.amenity].color }) }} listMarkerSymbol: | {{ markerCircle({ fillColor: const[tags.amenity].color }) }} info: | {% for value, data in const if data.zoom <= map.zoom %} {% endfor %}
{{ markerCircle({ fillColor: data.color }) }}
{{ data.icon }}
{{ tagTrans('amenity', value) }}
const: fountain: icon: ⛲ color: '#0000ff' zoom: 15 drinking_water: icon: 🚰 color: '#007fff' zoom: 17