Hello, Robert. I found my problem in my code. I had a couple of typos and I also discovered that I was referencing an incorrect field name.
However, in answer to your question......
I create a buffer list of attributes if a point falls within my polygon:
if (polygon.contains(pnt)) {
inBuffer2.push({
ObjectID: layer.attributes.FID,
Name: layer.attributes.Name,
lon: my_pnt.x,
lat: my_pnt.y
});
}
then I generate my graphics:
createGraphics: function (response, callback) {
callback(arrayUtils.map(response, function(feature, i) {
return new Graphic(
new Point({
x: feature.lon,
y: feature.lat
}), null,
{
FID: feature.ObjectID,
name: feature.Name,
lat: feature.lat,
lon: feature.lon
},null
);
}))
},
Regards,
DeWayne