I have been trying to use the re-created cluster function that was posted above and that makes use of QueryTask as input, but without success. The only difference is that I tried to implement Dojo's new AMD pattern as opposed to the legacy one used in the initial code. I have attached the full code in the zip file for reference. After debugging over and over I think it boils down to the following part: 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
};
}); My QueryTask returns the featureSet features alright. I'm seeing every single feature in there. The problem is assigning it to inputInfo.data...it just doesn't pass it through. There are no other errors while running this, basemap loads fine and nothing else. The attached code can be run directly in a browser, everything is in there. This may be something very simple to fix, I'm new at this as well. I'm just wondering if I missed something earlier in the code, like a loading a module or anything like that.
... View more