A map with the ExpressionEngine consent (consent="ee", the consent request reinos_maps:maps) and the consent form to grant it. After saving the form, the map is loaded directly. See Consent (GDPR).
Template
{exp:reinos_maps:html_header}
{exp:reinos_maps:map width="100%" height="300px" consent="ee"}
{maps:add_marker address="Utrecht Centraal"}
{/exp:reinos_maps:map}
{exp:consent:form consent="reinos_maps:maps"}
{consents}
<label><input type="checkbox" name="{consent_short_name}" value="y" {if consent_granted}checked{/if}> {consent_title}</label>
<p>{consent_request}</p>
{/consents}
<button type="submit">Save</button>
{/exp:consent:form}
{exp:reinos_maps:html_footer}Build it in your own site
What this example needs in ExpressionEngine, step by step.
- Install Maps.
- Put the code in a template.
This example comes from the Maps docs: the preview runs exactly the code above.