public class Cluster extends VectorSource
counter, JS_GLOBAL, objectIds| Constructor and Description |
|---|
Cluster(FeatureFormat format,
Projection projection,
Number distance,
VectorSource source)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Cluster |
distance(Number distance)
Sets the minimum distance between clusters (in pixels).
|
Number |
getDistance()
Returns the minimum distance (in pixels) between clusters.
|
String |
getJsType()
Returns a String with the type of Javascript object that this object represents.
|
VectorSource |
getSource()
Returns the data source being clustered.
|
String |
renderJs()
Returns a String with containing the rendered Javascript code for this object.
|
void |
setDistance(Number distance)
Sets the minimum distance between clusters (in pixels).
|
void |
setSource(VectorSource source)
Sets the data source being clustered.
|
Cluster |
source(VectorSource source)
Sets the data source being clustered.
|
addFeature, features, format, getFeatures, getFormat, getLoader, getProjection, loader, projection, removeFeature, setFeatures, setFormat, setLoader, setProjectionescapeQuoteJs, getJsId, getJsIdWithSuffixpublic Cluster(FeatureFormat format, Projection projection, Number distance, VectorSource source)
format - Format used for parsing featuresprojection - Projection to usedistance - Minimum distance (in pixels) between clusterssource - Data source that is being clusteredpublic Number getDistance()
public void setDistance(Number distance)
distance - Minimum distances between clusterspublic Cluster distance(Number distance)
distance - Minimum distance between clusterspublic VectorSource getSource()
public void setSource(VectorSource source)
source - Data source being clustered.public Cluster source(VectorSource source)
source - Data source being clusteredpublic String getJsType()
JavascriptObjectgetJsType in interface IJavascriptObjectgetJsType in class VectorSourcepublic String renderJs()
JavascriptObjectrenderJs in interface IJavascriptObjectrenderJs in class VectorSourceCopyright © 2014–2018. All rights reserved.