Package org.wicketstuff.gmap.api
Class GMarkerClusterOptions
- java.lang.Object
-
- org.wicketstuff.gmap.api.GMarkerClusterOptions
-
- All Implemented Interfaces:
Serializable
,GValue
public class GMarkerClusterOptions extends Object implements 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GMarkerClusterOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
getGridSize()
String
getJSconstructor()
Integer
getMaxZoom()
Integer
getMinimumClusterSize()
List<GMarkerClusterStyle>
getStyles()
boolean
isAverageCenter()
boolean
isZoomOnClick()
GMarkerClusterOptions
setAverageCenter(boolean averageCenter)
GMarkerClusterOptions
setGridSize(Integer gridSize)
GMarkerClusterOptions
setMaxZoom(Integer maxZoom)
GMarkerClusterOptions
setMinimumClusterSize(Integer minimumClusterSize)
GMarkerClusterOptions
setStyles(List<GMarkerClusterStyle> styles)
GMarkerClusterOptions
setZoomOnClick(boolean zoomOnClick)
-
-
-
Method Detail
-
getJSconstructor
public String getJSconstructor()
- Specified by:
getJSconstructor
in interfaceGValue
- Returns:
- A JavaScript constructor that represents this element.
- See Also:
GValue.getJSconstructor()
-
getGridSize
public Integer getGridSize()
-
setGridSize
public GMarkerClusterOptions setGridSize(Integer gridSize)
-
getMaxZoom
public Integer getMaxZoom()
-
setMaxZoom
public GMarkerClusterOptions setMaxZoom(Integer maxZoom)
-
isZoomOnClick
public boolean isZoomOnClick()
-
setZoomOnClick
public GMarkerClusterOptions setZoomOnClick(boolean zoomOnClick)
-
isAverageCenter
public boolean isAverageCenter()
-
setAverageCenter
public GMarkerClusterOptions setAverageCenter(boolean averageCenter)
-
getMinimumClusterSize
public Integer getMinimumClusterSize()
-
setMinimumClusterSize
public GMarkerClusterOptions setMinimumClusterSize(Integer minimumClusterSize)
-
getStyles
public List<GMarkerClusterStyle> getStyles()
-
setStyles
public GMarkerClusterOptions setStyles(List<GMarkerClusterStyle> styles)
-
-