EMS.Layer.ClusterMarkers

Marker Layer that clusters markers that overlap.

Inherits from:EMS.Layer.Markers
Summary
EMS.Layer.ClusterMarkersMarker Layer that clusters markers that overlap.
Constructor
EMS.Layer.ClusterMarkersCreate a ClsuterMarkers layer.
Functions
addMarkerAdds a marker to the layer and displays it.
addMarkersAdds an array of markers to the layer and clusters all markers
doClusteringCluster all markers on this layer.
getMarkers

Constructor

EMS.Layer.ClusterMarkers

Create a ClsuterMarkers layer.

Parameters

name{String}
options{Object} Hashtable of extra options to tag onto the layer.  These can include overrides for Marker Cluster properties, as well as overrides for cluster marker appearance

Functions

addMarker

addMarker: function(marker)

Adds a marker to the layer and displays it.  For performance reasons we do not cluster on each marker method.

Parameters

marker{OpenLayers.Marker}

addMarkers

addMarkers: function(markers)

Adds an array of markers to the layer and clusters all markers

Parameters

marker{OpenLayers.Marker}

doClustering

Cluster all markers on this layer.

Parameters

marker{OpenLayers.Marker}

getMarkers

getMarkers: function()

Returns

{Array}all the current markers on the layer.  This will never return null but may return an empty array.
addMarker: function(marker)
Adds a marker to the layer and displays it.
addMarkers: function(markers)
Adds an array of markers to the layer and clusters all markers
getMarkers: function()
Extension of the OpenLayers marker layer.
Instances of OpenLayers.Marker are a combination of a OpenLayers.LonLat and an OpenLayers.Icon.
Close