{% set medium = medium ?: false %}
{% set img = img ?: false %}
{% set dataResult = data ? data.markers|json_encode : false %}
{% set notInteractive = notInteractive ?: false %}
<div id="curMap" class="curMap map {{ medium ? "map_medium" }} {{ notInteractive ? "curMap_notInteractive" }}" style=".leaflet-marker-icon{width: 50px !important; height: 50px !important; background: no-repeat url({{img}}) center/100%}" data-result="{{dataResult}}"></div>
{% if fetch_nearby is defined and fetch_nearby == true %}
<div data-lat="{{ map.markers|first['lat'] }}" data-lng="{{ map.markers|first['lon'] }}" data-cachefile="{{ cachefile }}">
<br>
{% if parkings is defined and parkings is not empty %}
<div class="wrapper-cards cardsCenters cardsCenters_padding {{ parkings|trim ? '' : 'hide'}}">
{{ parkings|raw }}
</div>
{% else %}
<div class="wrapper-cards cardsCenters cardsCenters_padding hide" id="nearby_parking"></div>
{% endif %}
<br>
<div class="wrapper-cards cardsCenters cardsCenters_padding {{ buses|trim or subways|trim ? '' : 'hide'}}" id="nearby_transport">
<h2 class="headerTitleAndLink-group-title {{ buses|trim or subways|trim or trams|trim ? '' : 'hide'}}">Moyens de transport</h2>
{% if buses is defined and buses is not empty %}
{{ buses|raw }}
{% else %}
<div id="buses"></div>
{% endif %}
{% if subways is defined and subways is not empty %}
{{ subways|raw }}
{% else %}
<div id="subways"></div>
{% endif %}
{% if trams is defined and trams is not empty %}
{{ trams|raw }}
{% else %}
<div id="trams"></div>
{% endif %}
</div>
</div>
{% endif %}