What object do I call getClusterPresentation() on in order to install the listener? I've got the following so far:
Code:
var map = new nokia.maps.map.Display(mapContainer, {
center : [26, -97],
zoomLevel: 3,
components: [
new nokia.maps.map.component.ZoomBar(),
new nokia.maps.map.component.Behavior(),
new nokia.maps.map.component.TypeSelector()
]
});
var points = [{"latitude": 39.441609999999997, "value": 109.33954425739749, "longitude": -84.340641000000005},
{"latitude": 33.466169000000001, "value": 215.34702619408367, "longitude": -117.69165100000001},
{"latitude": 28.330562, "value": 134.45855372915111, "longitude": -81.47369599999999}];
//much longer array but truncated here
var clusterProvider = new nokia.maps.clustering.ClusterProvider(map, {
eps: 1,
minPts: 1,
dataPoints: points
});
clusterProvider.cluster();