Solved! Go to Solution.
I noticed the link doesn't work, display's a blank map. Is there a different link to look at?
We have the clustering working well on 100,000+ points but noticed that when the cluster marker has more than 1000 count it drops the marker graphic and only displays the label. Is this a limitation of the Javascript api or a bug with it? Could it be it is droping it because it can't fit a 4 digit label inside the graphic? I noticed ESRI example doesn't go over 999 either. https://developers.arcgis.com/en/javascript/jssamples/layers_point_clustering.html
Anyone have suggestions on how to get the marker to work for counts of more than 999?
Thanks,
Brian
We have the clustering working well on 100,000+ points but noticed that when the cluster marker has more than 1000 count it drops the marker graphic and only displays the label. Is this a limitation of the Javascript api or a bug with it? Could it be it is droping it because it can't fit a 4 digit label inside the graphic? I noticed ESRI example doesn't go over 999 either. https://developers.arcgis.com/en/javascript/jssamples/layers_point_clustering.html
Anyone have suggestions on how to get the marker to work for counts of more than 999?
renderer.addBreak(200, 1001, red);
I think there are 2 reasons why people aren't seeing more than 1000 markers:
- by default ArcGIS Server / ArcGIS Online only return the first 1000 features from a query
- if you've circumvented this (which it sounds like you have, if you're seeing 100k markers) check the renderer.
The renderer in the sample above contains:renderer.addBreak(200, 1001, red);
Try adding class breaks which contain a valid range for your data.
queryTask.on("complete", function(featureSet) { var inputInfo = {}; inputInfo.data = arrayUtils.map(featureSet.features, function(feature) { var pointX = feature.geometry.x; var pointY = feature.geometry.y; var att = feature.attributes; return { "x": pointX, "y": pointY, "attributes": att }; });
queryTask.on("complete", function(results)
dojo.connect(queryTask, "onComplete", function(featureSet)
queryTask.on("complete", function(featureSet) { var inputInfo = {}; inputInfo.data = arrayUtils.map(featureSet.features, function(feature) { var pointX = feature.geometry.x; var pointY = feature.geometry.y; var att = feature.attributes; return { "x": pointX, "y": pointY, "attributes": att }; });
queryTask.on("complete", function(results) { var inputInfo = {}; inputInfo.data = arrayUtils.map(results.featureSet.features, function(feature) { var pointX = feature.geometry.x; var pointY = feature.geometry.y; var att = feature.attributes; return { "x": pointX, "y": pointY, "attributes": att }; });