org.wicketstuff.gmap.api
Class GMarkerClusterOptions

java.lang.Object
  extended by 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. http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/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
GMarkerClusterOptions()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GMarkerClusterOptions

public GMarkerClusterOptions()
Method Detail

getJSconstructor

public String getJSconstructor()
Specified by:
getJSconstructor in interface GValue
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)


Copyright © 2014. All rights reserved.