{{{customeditframe.editframeStart}}}
<div class="editorial-map-and-card-grid {{#ifEquals type "map"}}map-view{{/ifEquals}} {{#ifEquals type "mapAndCards"}}map-view{{/ifEquals}} {{#ifEquals type "cards"}}card-view{{/ifEquals}}" data-module="editorialMapAndCardGrid" data-map-key="{{mapKey}}">
    <div class="editorial-map-and-card-grid__inner grid-layout__full-width">
        <div class="grid-x grid-margin-x">
            {{#if title}}<h2 class="editorial-map-and-card-grid__title cell">{{{title}}}</h2>{{/if}}
            {{#if subtitle}}<p class="editorial-map-and-card-grid__subtitle cell">{{{subtitle}}}</p>{{/if}}
            {{#ifEquals type "mapAndCards"}}
            <div class="editorial-map-and-card-grid-toggle">
                <a href="#" class="editorial-map-and-card-grid-toggle__map-toggle js-show-map">Map View</a>
                <a href="#" class="editorial-map-and-card-grid-toggle__card-toggle js-show-cards">Card View</a>
            </div>
            {{/ifEquals}}
        </div>
        {{> @cp-card-view }}
        {{> @cp-map-view }}
    </div>
</div>
{{{customeditframe.editframeStop}}}