Reinos.nl internet media examples

Marker Cluster

Maps 5.0.1 Live

Markers close to each other are grouped in a cluster with their number, with marker_cluster:enabled="yes". Zoom in or click a cluster to see the markers.

Template
{exp:reinos_maps:html_header}
{exp:reinos_maps:map
	width="100%"
	center:address="netherlands"
	zoom="7"
	marker_cluster:enabled="yes"
}
	{maps:add_marker address="heerde"}
	{maps:add_marker address="amsterdam"}
	{maps:add_marker address="rotterdam"}
	{maps:add_marker address="apeldoorn"}
	{maps:add_marker address="zwolle"}
	{maps:add_marker address="klarenbeek"}
	{maps:add_marker address="voorst"}
	{maps:add_marker address="den-helder"}
	{maps:add_marker address="deventer"}
{/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.