{% block element_moorl_location %}
{% set locationOptions = { locations: [ element.data.leafletLocation ], tileLayer: config('MoorlFoundation.config.osmTileLayer'), attribution: config('MoorlFoundation.config.osmAttribution'), options: element.config.overrideOsmOptions.value ? element.config.osmOptions.value : config('MoorlFoundation.config.osmOptions'), padding: config('MoorlFoundation.config.osmPadding'), zoom: config('MoorlFoundation.config.osmZoom'), cookieConsent: config('MoorlFoundation.config.osmCookieConsent'), } %} {% block element_moorl_location_map %}
{% block element_moorl_location_map_legend %} {% if element.data.markers %}
{% block element_moorl_location_map_legend_title %}

{{ "moorl-foundation.card.legend"|trans }}

{% endblock %} {% block element_moorl_location_map_legend_items %} {% for marker in element.data.markers %} {% if marker.marker.url %} {% else %} {{ marker.svg|raw }} {% endif %} {{ marker.name }}
{% endfor %} {% endblock %}
{% endif %} {% endblock %}
{% if locationOptions.cookieConsent %} {% sw_include '@MoorlFoundation/plugin/moorl-foundation/component/cookie-box/index.html.twig' with { cookieKey: 'moorl-location-map' } %} {% endif %}
{% endblock %}
{% endblock %}