{% set pendingClass = 'pending' if element.displayAsPending() else '' %} {% set mainIconInMarkerShape = element.markerShape.iconInside|default(true) %} {% set otherIconsToDisplay = element.iconsToDisplay %} {% if mainIconInMarkerShape %} {% set otherIconsToDisplay = otherIconsToDisplay|remove_first %} {% endif %} {% set otherIconsCount = otherIconsToDisplay.length %} {% set showOtherIcons = otherIconsCount > 0 and not element.displayAsPending() %} {% set circle = element.markerShape.circle|default(false) %} {% set iconColorAs = 'gogo-color-as' if circle else 'gogo-bg-color-as' %} {% from "components/map/marker-shape.html.njk" import markerShape, icon %}
{# POPUP #} {% if config.marker.displayPopup %}
{{ popup|safe }}
{% endif %}
{# MARKER SHADOW #}
{# MARKER SHAPE #} {{ markerShape(element.markerShape, 'marker-shape gogo-color-as ' ~ pendingClass, element.colorOptionId) }} {% if mainIconInMarkerShape %} {# MAIN ICON #}
{{ icon(element.mainIcon, "marker-icon rotate-reverse " ~ (pendingClass if circle)) }}
{# PLUS ICON #} {% if showOtherIcons %}
{% endif %} {# MINI ICON : FAVORITE / STAMPS #} {% set displayStamps = element.displayStamps() %}
{% if config.isFeatureAvailable('favorite') and element.isFavorite %} {% endif %} {% if config.isFeatureAvailable('stamp') %} {% for stamp in displayStamps %} {% endfor %} {% endif %}
{% endif %}
{# OTHER ICONS #} {% if showOtherIcons %}
{% for optionValue in otherIconsToDisplay %} {% set disabledClass = 'disabled' if not optionValue.isFilledByFilters %}
{{ icon(optionValue.option.icon, "marker-icon " ~ disabledClass) }}
{% endfor %}
{% endif %}