Interface nokia.maps.clustering.IClusterPoint
This interface defines properties for a data point that can be used in clustering. Each data point used for clustering purposes must conform to this interface.
value (this
property) than to any
others. It is the default way to position the cluster marker,
the other options being "center" and "first". "Center" ensures that the
cluster marker is placed in the center of the cluster, while "first"
means that the position of the cluster marker coincides with the first data point
(marker) in the cluster.
You can determine the position of the cluster marker explicitly when initializing nokia.maps.clustering.MarkerTheme. To do that, set the property "position" on an instance of nokia.maps.clustering.MarkerTheme.Options#position - the object is the argument to the MarkerTheme constructor. The example below demonstrates how to set weight-based positioning, using a constant defined on the class nokia.maps.clustering.MarkerTheme:
var map = new nokia.maps.map.Display(...);
clusterProvider = new nokia.maps.clustering.ClusterProvider(map, {
theme : new nokia.maps.clustering.MarkerTheme({
position: nokia.maps.clustering.MarkerTheme.POSITION_WEIGHT_CENTER
})
});
Note that if value is not set on any of the data points in
the cluster, you can improve clustering performance by specifying
"center" as the configuration setting for MarkerTheme,
while achieving a similar visual effect as that created by "weight".
- Default Value:
- 1
