Jump to Content

Objective HTML

Google Maps for ExpressionEngine

The complete geolocation and mapping toolkit

Marker Clustering from Channel Data

This example outlines how you would use the exp:gmap:marker method to create marker clusters from a simple exp:gmap:marker tag.


{exp:gmap:init id="map2" scrollwheel="false"  style="width:400px;height:300px"}

{exp:channel:entries channel="gis_data" disable="member_data|pagination|categories|category_fields"}
	
	{exp:gmap:marker id="map2" latitude="{gis_latitude}" longitude="{gis_longitude}" geocode="false" clustering="true"}
		
		{title}
		
	{/exp:gmap:marker}
	
{/exp:channel:entries}