java.lang.Object
com.dlsc.gmapsfx.javascript.JavascriptObject
com.dlsc.gmapsfx.javascript.object.MarkerClusterer
public class MarkerClusterer extends JavascriptObject
User: twalcari
Date: 1/9/2015
Time: 12:01
-
Field Summary
Fields inherited from class com.dlsc.gmapsfx.javascript.JavascriptObject
jsObject, objectCounter, peerRegistry, runtime, variableName -
Constructor Summary
Constructors Constructor Description MarkerClusterer(GoogleMap map)MarkerClusterer(GoogleMap map, JavascriptArray markers) -
Method Summary
Modifier and Type Method Description voidaddMarker(Marker marker)Adds a marker to the clusterer and redraws if needed.voidaddMarkers(JavascriptArray markers)Add an array of markers to the clusterer.voidclearMarkers()Clears all clusters and markers from the clusterer.intgetGridSize()Gets the max zoom for the clusterer.JavascriptArraygetMarkers()Returns the array of markers in the clusterer.intgetMaxZoom()Gets the max zoom for the clusterer.voidredraw()booleanremoveMarker(Marker marker)voidsetGridSize(int number)Sets the max zoom for the clusterer.voidsetMaxZoom(int number)Sets the max zoom for the clusterer.Methods inherited from class com.dlsc.gmapsfx.javascript.JavascriptObject
checkBoolean, checkInteger, checkUndefined, getJSObject, getNextVariableName, getProperty, getProperty, getVariableName, invokeJavascript, invokeJavascript, invokeJavascriptReturnValue, invokeJavascriptReturnValue, isMemberDefined, setProperty, setProperty, setProperty
-
Constructor Details
-
Method Details
-
addMarker
Adds a marker to the clusterer and redraws if needed.- Parameters:
marker-
-
addMarkers
Add an array of markers to the clusterer.- Parameters:
markers-
-
clearMarkers
public void clearMarkers()Clears all clusters and markers from the clusterer. -
getMarkers
Returns the array of markers in the clusterer.- Returns:
-
getMaxZoom
public int getMaxZoom()Gets the max zoom for the clusterer.- Returns:
-
redraw
public void redraw() -
setMaxZoom
public void setMaxZoom(int number)Sets the max zoom for the clusterer.- Parameters:
number-
-
removeMarker
-
getGridSize
public int getGridSize()Gets the max zoom for the clusterer.- Returns:
-
setGridSize
public void setGridSize(int number)Sets the max zoom for the clusterer.- Parameters:
number-
-