Reinos.nl internet media examples

Maps in an entry loop

Maps 5.0.1 Code only

A marker per entry with {maps:add_marker}. For many entries, use Entries on a map: one layer instead of a Javascript call per marker.

Template
{exp:reinos_maps:html_header}
{exp:reinos_maps:map
	width="100%"
}
    {exp:channel:entries channel="maps" dynamic="off"}
        {maps:add_marker
            address='{address}'
        }
    {/exp:channel:entries}
{/exp:reinos_maps:map}
{exp:reinos_maps:html_footer}

Build it in your own site

What this example needs in ExpressionEngine, step by step.

  1. Install Maps.
  2. Put the code in a template.

This example comes from the Maps docs: the preview runs exactly the code above.