The addresses of the entries are collected with Stash first, then added as markers in one add_marker tag. Needs the Stash add-on.
Template
{exp:stash:set name="address"}
{exp:channel:entries channel="maps" dynamic="off"}
{address}|
{/exp:channel:entries}
{/exp:stash:set}
{exp:reinos_maps:html_header}
{exp:reinos_maps:map
width="100%"
}
{maps:add_marker
address='{exp:stash:get name="address"}'
}
{/exp:reinos_maps:map}
{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.