Fork me on GitHub
Show:

MarkerCluster

Summary

A strategy for rendering clusters of markers using Leaflet.

Constructor

aeris.maps.leaflet.MarkerCluster

Syntax

aeris.maps.leaflet.MarkerCluster

()

Summary

Methods

addBulkMarkers_

Syntax

addBulkMarkers_

(
  • markers
)
private

Summary

Parameters:

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

createCluster_

Syntax

createCluster_

(
  • type
)
MarkerClusterGroup private

Summary

Parameters:

Returns:

createClusterHtml_

Syntax

createClusterHtml_

(
  • cluster
  • type
)
String private

Summary

Parameters:

Returns:

createIconForCluster_

Syntax

createIconForCluster_

(
  • cluster
  • type
)
Icon private

Summary

Parameters:

Returns:

Icon:

createView_

Syntax

createView_

() private

Summary

destroy

Syntax

destroy

()

Summary

ensureClusterGroup_

Syntax

ensureClusterGroup_

(
  • type
)
private

Summary

Parameters:

getClusterForMarker_

Syntax

getClusterForMarker_

(
  • marker
)
MarkerClusterGroup private

Summary

Parameters:

Returns:

getClusterStyle_

Syntax

getClusterStyle_

(
  • cluster
  • type
)
Object= private

Summary

Chooses a cluster style based on the specified cluster type, and the size of the cluster.

Parameters:

Returns:

Object=:

Style options

getMarkerType_

Syntax

getMarkerType_

(
  • marker
)
String private

Summary

Parameters:

Returns:

String:

Marker group type

getView

Syntax

getView

() ?Object

Summary

Return the view instance created by the map-rendering API.

Returns:

?Object:

hideMarkerView_

Syntax

hideMarkerView_

(
  • marker
)
private

Summary

Hide a marker's view from the map, without effecting the state of the marker object.

Parameters:

proxyMouseEvents_

Syntax

proxyMouseEvents_

(
  • cluster
)
private

Summary

Parameters:

remove

Syntax

remove

()

Summary

Remove the object view from the map view.

removeMarker_

Syntax

removeMarker_

(
  • marker
)
private

Summary

Parameters:

resetMarkers_

Syntax

resetMarkers_

(
  • opt_replacementMarkers
)
private

Summary

Parameters:

setMap

Syntax

setMap

()

Summary

triggerMouseEvent_

Syntax

triggerMouseEvent_

(
  • eventName
  • eventObj
)
private

Summary

Trigger a click event on the {aeris.maps.markercollections.MarkerCollection} object, by transforming a {L.MouseEvent} object.

Parameters:

  • eventName String

    The event to fire on the MarkerCollection.

  • eventObj MouseEvent

Properties

CLUSTER_CSS_CLASS_

Syntax

CLUSTER_CSS_CLASS_

String private

Summary

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.

SINGLE_CLUSTER_GROUP_NAME_

Syntax

SINGLE_CLUSTER_GROUP_NAME_

String private

Summary

view

Syntax

view

Object.

Summary

A hash of MarkerClusterer objects, referenced by group name.

eg. { snow: {L.MarkerClusterGroup}, rain: {L.MarkerClusterGroup} }

view_

Syntax

view_

Object

Summary

The view instance created by the map rendering API.