Package org.wicketstuff.gmap.api
Class GMarkerClusterOptions
java.lang.Object
org.wicketstuff.gmap.api.GMarkerClusterOptions
- All Implemented Interfaces:
Serializable
,GValue
Options object for using specific settings in marker clustering.
Like custom icons or zoom restrictions.
https://googlemaps.github.io/js-marker-clusterer/docs/reference.html
Docs from the js file:
'gridSize': (number) The grid size of a cluster in pixels.
'maxZoom': (number) The maximum zoom level that a marker can be part of a cluster.
'zoomOnClick': (boolean) Whether the default behaviour of clicking on a cluster is to zoom into it.
'averageCenter': (boolean) Wether the center of each cluster should be
the average of all markers in the cluster.
'minimumClusterSize': (number) The minimum number of markers to be in a
cluster before the markers are hidden and a count is shown.
'styles': (object) An object that has style properties:
'url': (string) The image url.
'height': (number) The image height.
'width': (number) The image width.
'anchor': (Array) The anchor position of the label text.
'textColor': (string) The text color.
'textSize': (number) The text size.
'backgroundPosition': (string) The position of the backgound x, y.
- Author:
- Rob Sonke
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
setAverageCenter
(boolean averageCenter) setGridSize
(Integer gridSize) setMaxZoom
(Integer maxZoom) setMinimumClusterSize
(Integer minimumClusterSize) setStyles
(List<GMarkerClusterStyle> styles) setZoomOnClick
(boolean zoomOnClick)
-
Constructor Details
-
GMarkerClusterOptions
public GMarkerClusterOptions()
-
-
Method Details
-
getJSconstructor
- Specified by:
getJSconstructor
in interfaceGValue
- Returns:
- A JavaScript constructor that represents this element.
- See Also:
-
getGridSize
-
setGridSize
-
getMaxZoom
-
setMaxZoom
-
isZoomOnClick
public boolean isZoomOnClick() -
setZoomOnClick
-
isAverageCenter
public boolean isAverageCenter() -
setAverageCenter
-
getMinimumClusterSize
-
setMinimumClusterSize
-
getStyles
-
setStyles
-