public class ClusteredVectorLayer extends VectorLayer
swigCMemOwn
Constructor and Description |
---|
ClusteredVectorLayer(LocalVectorDataSource dataSource,
ClusterElementBuilder clusterElementBuilder)
Constructs a new ClusteredVectorLayer instance from data source and a special callback.
|
ClusteredVectorLayer(long cPtr,
boolean cMemoryOwn) |
Modifier and Type | Method and Description |
---|---|
void |
delete() |
boolean |
expandCluster(VectorElement clusterElement,
float px)
Expands or shrinks the given cluster element.
|
protected void |
finalize() |
ClusterElementBuilder |
getClusterElementBuilder()
Returns the current callback used for creating cluster elements.
|
static long |
getCPtr(ClusteredVectorLayer obj) |
float |
getMaximumClusterZoom()
Returns the maximum zoom level when clusters are shown.
|
float |
getMinimumClusterDistance()
Returns the current minimum distance between clusters (in device-independent pixels).
|
void |
refresh()
Refreshes the layer using old stored visibility information.
|
void |
setMaximumClusterZoom(float maxZoom)
Sets the maximum zoom level when clusters are shown.
|
void |
setMinimumClusterDistance(float px)
Sets the minimum distance between clusters (in device-independent pixels).
|
static ClusteredVectorLayer |
swigCreatePolymorphicInstance(long cPtr,
boolean cMemoryOwn)
Creates a polymorphic instance of the given native object.
|
java.lang.String |
swigGetClassName()
Returns the actual class name of this object.
|
java.lang.Object |
swigGetDirectorObject()
Returns the connected director object.
|
getCPtr, getDataSource, isUpdateInProgress
equals, getCPtr, getPriority, getVisibleZoomRange, hashCode, isVisible, setPriority, setVisible, setVisibleZoomRange, update
public ClusteredVectorLayer(long cPtr, boolean cMemoryOwn)
public ClusteredVectorLayer(LocalVectorDataSource dataSource, ClusterElementBuilder clusterElementBuilder)
dataSource
- The local data source that contains the elements for clustering.clusterElementBuilder
- The callback for creating and customizing cluster elements.public static long getCPtr(ClusteredVectorLayer obj)
protected void finalize()
finalize
in class VectorLayer
public void delete()
delete
in class VectorLayer
public static ClusteredVectorLayer swigCreatePolymorphicInstance(long cPtr, boolean cMemoryOwn)
public ClusterElementBuilder getClusterElementBuilder()
public float getMinimumClusterDistance()
public void setMinimumClusterDistance(float px)
px
- The new value in device-independent pixels. The default is 100.public float getMaximumClusterZoom()
public void setMaximumClusterZoom(float maxZoom)
maxZoom
- The new maximum clustering zoom level.public boolean expandCluster(VectorElement clusterElement, float px)
clusterElement
- The cluster element to expand or shrink.px
- The distance (in device-independent pixels) between cluster center and expanded elements. Use 0 to shrink already expanded cluster.public void refresh()
Layer
public java.lang.String swigGetClassName()
swigGetClassName
in class VectorLayer
public java.lang.Object swigGetDirectorObject()
swigGetDirectorObject
in class VectorLayer