{% set contentPoolDomainMapping = {
'1142': 'maps.erzberg-leoben.at',
'1141': 'maps.gesaeuse.at',
'1137': 'maps.murtal.at',
'1138': 'maps.regionmurau.at',
'1140': 'maps.regiongraz.at',
'1077': 'maps.ausseerland.at',
'1136': 'maps.schladming-dachstein.at',
'1120': 'maps.suedsteiermark.com',
'1139': 'maps.hochsteiermark.at',
'1133': 'maps.oststeiermark.com',
'1135': 'maps.thermen-vulkanland.at'
} %}
{#1134 is fallback Steiermark pool#}
{% set contentPoolId = tour.mandatorId ?? '1134' %}
{% set mapDomain = 'maps.steiermark.com' %}
{% if contentPoolDomainMapping[contentPoolId] is defined %}
{% set mapDomain = contentPoolDomainMapping[contentPoolId] %}
{% endif %}
<section class="container content-block">
{{ include('Includes/title-block.html.twig', {
title: 'tour-detail.Map & Downloads'|trans,
isCentered: true
}) }}
<div class="position-relative tour-map">
{% if tour.generalSolutionsId %}
<div class="js-consent-overlay col-12 embed-responsive embed-responsive-9by3 embed-responsive-contwise-map-xs" data-consent-type="marketing">
<div class="js-consent-overlay__overlay contwise-map__overlay embed-responsive-item consent-overlay bg-light-bg d-flex justify-content-md-center flex-column align-items-center">
{{ 'cookies.accept-cookies-to-show-map' |trans }}
<button type="button" class="btn btn-primary-light mt-4 js-consent-overlay__btn">
{{ 'cookies.accept-marketing-cookies' |trans }}
</button>
<div class="loading-spinner js-consent-overlay__loading mt-4" aria-label="lädt" hidden>
<div class="loading-spinner__item loading-spinner__item--1"></div>
<div class="loading-spinner__item loading-spinner__item--2"></div>
<div class="loading-spinner__item loading-spinner__item--3"></div>
</div>
</div>
<iframe class="contwise-map__iframe js-consent-overlay__iframe embed-responsive-item" data-iframe-src="https://{{ mapDomain }}/v2/{{ app.request.locale }}/auto/2d/-1/detail/-1/-1/-1/-1/{{ tour.generalSolutionsId }}?hideCookieConsent=true&showEmbedded=true&showSheet=true&showMapTopControls=true" height="467px" width="100%"></iframe>
</div>
{% endif %}
</div>
<div class="row vertical-gutter--2 pt-4 pt-md-5 d-flex justify-content-center">
{% if tour.gpxFile is instanceof('\\Pimcore\\Model\\Asset') %}
<div class="col-md-4 vertical-gutter__item"><a href="{{ path('app_asset_download', {id: tour.gpxFile.id}) }}" class="btn btn-outline-primary btn-block">{{ 'tour-detail.Download GPX Daten'|trans }}</a></div>
{% endif %}
{% if tour.kmlFile is instanceof('\\Pimcore\\Model\\Asset') %}
<div class="col-md-4 vertical-gutter__item"><a href="{{ path('app_asset_download', {id: tour.kmlFile.id}) }}" class="btn btn-outline-primary btn-block">{{ 'tour-detail.Download KML Daten'|trans }}</a></div>
{% endif %}
</div>
</section>