Solved! Go to Solution.
hi
tried to implement Tracy's code
but i get an error "Object doesn't support this action"
when instantiating the cluster layer
new ClusterLayer({
"data": inputInfo.data,
"distance": 100,
"id": "clusters",
"labelColor": "#fff",
"spatialReference": SR,
"labelOffset": 10,
"resolution": map.extent.getWidth() / map.width,
"singleColor": "#888",
"singleTemplate": infoTemplate
});
i checked that all parameters sent are valid .
infoTemplate = new InfoTemplate("Attributes", "${*}");
any idea what might be in the way?
I can't believe I got it work! This method executes much faster than the forum example, so I'm glad I switched.
One question I have about this: is there any way to configure a cluster layer for a feature service so it isn't limited by the 1000 feature return limit on Server? It seems that one of the benefits of clustering would be being able to visualize total number of events in an area, even if the total events are greater than 1000.
a clusterer property for graphicsLayer and a defaultClusterer that would support basic clustering properties like maxFeatureCount, radius, and color.