{% set detailTitle = title|default('') %}
{% set geoPoint = geoPoint|default(false) %}
{% set zip = zip|default(false) %}
{% set street = street|default(false) %}
{% set city = city|default(false) %}
{% do jsConfig().add('googleMapAPIKey', googleApiKey()) %}
{% if geoPoint or street or zip or city %}
<section class="map-area container content-block-small">
{{ include('includes/title-blocks/title-block-object.html.twig', {
titleBold: detailTitle,
title: " ",
subtitle: " ",
titleStyle: 'h4'
}) }}
<div class="ratio ratio-3x1 ratio-4x3-xs map-area__container">
{% if geoPoint|default(null) and geoPoint.longitude and geoPoint.latitude %}
{% set geo = geoPoint.latitude ~ ',' ~ geoPoint.longitude %}
{% else %}
{% set geo = street|default('') ~ ', ' ~ zip|default('') ~ ' ' ~ city|default('') %}
{% endif %}
{% embed('@ElementsCmsTools/consent-overlay.html.twig') with {
'service': 'marketing',
'buttonText': 'cookies.Marketingcookies akzeptieren'|trans,
'overlayText': 'cookies.Um die Map anzusehen, müssen Sie die Cookies akzeptieren'|trans
} %}
{% block consentIframe %}
<iframe src="https://www.google.com/maps?q={{ geo }}&key={{ googleApiKey() }}&hl=es;z=14&output=embed"
style="border-radius: 0.5rem"
allowfullscreen=""
loading="lazy"
referrerpolicy="no-referrer-when-downgrade"
class="ratio-item location-map shadow">
</iframe>
{% endblock %}
{% endembed %}
</div>
</section>
{% endif %}