{namespace neos=Neos\Neos\ViewHelpers}
{namespace poi=Newland\Toubiz\Poi\Neos\ViewHelpers}
{namespace vh=Newland\NeosViewHelpers\ViewHelpers}

<f:if condition="{article.isTour} && {article.flatAttributes.dataSource.0}=='outdooractive'">
    <f:then>
        <div class="mb-8">
            <vh:render partial="PointOfInterests/Show/Tour/OutdoorActiveMap" arguments="{_all}"/>
        </div>
    </f:then>
    <f:else if="{article.hasGeocoordinates}">
        <div class="mb-8">
            <poi:map article="{article}" />
            <f:if condition="{article.flatAttributes.elevationProfile}">
                <div class="tb-tour-elevation-profile">
                    <h2 class="mt-0 mb-2 text-xl">
                        {vh:translate(id: 'elevationProfile.title', package: 'Newland.Toubiz.Poi.Neos', source: 'Views/Show')}
                    </h2>
                    <img
                        data-src="{article.flatAttributes.elevationProfile}"
                        alt="{article.name}"
                        class="tb-tourist-information__image lazyload"
                        itemprop="image url" />
                </div>
            </f:if>
        </div>
    </f:else>
</f:if>
