Browse Source

lgbtq: initial version

master
Stephan Bösch-Plepelits 10 months ago
parent
commit
0eac2e0a92
  1. 70
      lgbtq.yaml

70
lgbtq.yaml

@ -0,0 +1,70 @@
query:
14: nwr[lgbtq][lgbtq!=no]
feature:
pre: |
{% set type = 'other' %}
{% if tags.amenity %}{% set type = 'amenity=' ~ tags.amenity %}
{% elseif tags.leisure %}{% set type = 'leisure=' ~ tags.leisure %}
{% elseif tags.shop %}{% set type = 'shop=' ~ tags.shop %}
{% endif %}
description: |
{% if tags.amenity %}{{ tagTrans('amenity', tags.amenity) }}
{% elseif tags.leisure %}{{ tagTrans('leisure', tags.leisure) }}
{% elseif tags.shop %}{{ tagTrans('shop', tags.shop) }}
{% endif %}
markerSymbol: |
{{ markerPointer({ fillColor: const.lgbtq[tags.lgbtq].color|default('red') }) }}
listMarkerSymbol: |
{{ markerCircle({ fillColor: const.lgbtq[tags.lgbtq].color|default('red') }) }}
markerSign: |
{% set key = type|split('=')[0] %}
{{ const.type[type].icon|default(const.type[key].icon)|raw }}
info: |
{{ keyTrans('lgbtq') }}:
<table>
{% for k, data in const.lgbtq if not data.hide %}
<tr>
<td>
{{ markerCircle({ fillColor: data.color }) }}<div class='sign'></div>
</td>
<td>{{ tagTrans('lgbtq', k) }}</td>
</tr>
{% endfor %}
</table>
const:
type:
amenity=cafe:
icon: <i class="fas fa-coffee"></i>
amenity=community_centre:
icon: <i class="fas fa-users"></i>
amenity=bar:
icon: <i class="fas fa-glass-martini-alt"></i>
amenity=pub:
icon: <i class="fas fa-beer"></i>
amenity=swingerclub:
icon: <img data-src="maki:playground">
amenity=nightclub:
icon: <i class="fas fa-glass-cheers"></i>
amenity=restaurant:
icon: <i class="fas fa-utensils"></i>
leisure=sauna:
icon: <i class="fas fa-hot-tub"></i>
shop:
icon: <i class="fas fa-shopping-basket"></i>
shop=books:
icon: <i class="fas fa-book"></i>
shop=erotic:
icon: <i class="fas fa-shopping-basket"></i>
lgbtq:
primary:
color: '#00ff00'
yes:
color: '#00ff00'
hide: true
friendly:
color: 'green'
hide: true
welcome:
color: 'green'
only:
color: 'cyan'
Loading…
Cancel
Save