I'm using the below sample and I want to change the queried results from points to polygons
http://help.arcgis.com/en/webapi/jav…ry_buffer.html
Probably very simple but can't get my head around where to change it.
I tried replacing the queryTask to http://sampleserver1.arcgisonline.co…SA/MapServer/1 and changing the symbol style to reflect this but it didn't seem to make much difference. I'm sure that somewhere and I can't see where, I need to make reference to the fact that we are now querying polygon and not point data.
Best Answer
The buffer user-defined graphics sample shows how to buffer points, line and polygons.
A graphic is added to the map for the user-defined geometry and then that geometry is sent to a geometry service be buffered: