AnsweredAssumed Answered

can I add attributes to geometries being buffered by geometryservice?

Question asked by SRoberts on Apr 5, 2016
Latest reply on Apr 5, 2016 by rscheitlin

I am using a geometry service to buffer a collection of points.  I'd like the user to be able to toggle on and off the points and associated buffer.  The bufferparameters object required by the geometryservice.buffer method takes an array of geometries as a parameter.  I tried to pass it an array of graphics instead, but this doesn't work.  Is there any way to pass in an objectID or attributes with the geometries, so that the geometries that are returned by the buffer can be associated with the original graphics?  I don't think that I can assume that the returned array has the same sort order as the passed array.  The only work around that I see is calling the buffer individually for each graphic which would mean a lot more calls to the service.

Thank you in advance,

S. Roberts