MarkerCluster
Summary
A strategy for rendering clusters of markers using Leaflet.
Constructor
aeris.maps.leaflet.MarkerCluster
Syntax
aeris.maps.leaflet.MarkerCluster
()
Summary
Item Index
Methods
- addBulkMarkers_
- afterRemove_
- beforeRemove_
- bindObjectToView_
- createCluster_
- createClusterHtml_
- createIconForCluster_
- createView_
- destroy
- ensureClusterGroup_
- getClusterForMarker_
- getClusterStyle_
- getMarkerType_
- getView
- hideMarkerView_
- proxyMouseEvents_
- remove
- removeMarker_
- resetMarkers_
- setMap
- triggerMouseEvent_
Methods
addBulkMarkers_
Syntax
addBulkMarkers_
-
markers
Summary
afterRemove_
Syntax
afterRemove_
()
protected
Summary
This method is called after this.mapView_ is set to null;
beforeRemove_
Syntax
beforeRemove_
()
private
Summary
bindObjectToView_
Syntax
bindObjectToView_
()
private
Summary
createClusterHtml_
Syntax
Summary
Parameters:
-
cluster
MarkerCluster -
type
StringIcon type category
Returns:
createIconForCluster_
Syntax
Summary
Parameters:
-
cluster
MarkerCluster -
type
StringIcon type category
Returns:
createView_
Syntax
createView_
()
private
Summary
destroy
Syntax
destroy
()
Summary
getClusterStyle_
Syntax
Summary
Chooses a cluster style based on the specified cluster type, and the size of the cluster.
Parameters:
-
cluster
MarkerCluster -
type
String
Returns:
Style options
hideMarkerView_
Syntax
hideMarkerView_
-
marker
Summary
Hide a marker's view from the map, without effecting the state of the marker object.
Parameters:
-
marker
Marker
proxyMouseEvents_
Syntax
proxyMouseEvents_
-
cluster
Summary
Parameters:
-
cluster
MarkerClusterGroup
remove
Syntax
remove
()
Summary
Remove the object view from the map view.
resetMarkers_
Syntax
resetMarkers_
-
opt_replacementMarkers
Summary
setMap
Syntax
setMap
()
Summary
triggerMouseEvent_
Syntax
triggerMouseEvent_
-
eventName
-
eventObj
Summary
Trigger a click event on the {aeris.maps.markercollections.MarkerCollection} object, by transforming a {L.MouseEvent} object.
Parameters:
-
eventName
StringThe event to fire on the MarkerCollection.
-
eventObj
MouseEvent
Properties
mapView_
Syntax
mapView_
?google.maps.Map
Summary
The map associated with this object
objectEvents_
Syntax
objectEvents_
Unknown
private
Summary
Evens to bind the map view to the object.
Binds object attribute 'change' events to strategy methods.
view
Syntax
view
Object.Summary
A hash of MarkerClusterer objects, referenced by group name.
eg. { snow: {L.MarkerClusterGroup}, rain: {L.MarkerClusterGroup} }