Draw a circle that does not resize when zooming

501
2
Jump to solution
05-16-2012 04:11 PM
TimGeiges
New Contributor
I need to be able to draw a circle at a point that represents X miles, but it seems when I add a symbol it resizes etc when I zoom, I did not see any built in method to create a circle, although the drawtool seems to have a circle tool and when I use that to draw a circle with the mouse it works the way I would like to see a circle, but that tool does not seem to have any code based way to interact with it, so I cannot tell draw tool to start a a point and draw a circle x large.

Is there an easy way to basically call a method that says draw a circle with a center point of x,y and X miles in diameter?

I saw a couple examples I really hoped would work but they did not help much.
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Kernelz,

   Have you looked at the buffer function of the GeometryService?

http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/tasks/GeometryService.html

and BufferParameters:

http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/tasks/supportClasses/BufferParameters.html

This would accomplish what you are looking for.

View solution in original post

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Kernelz,

   Have you looked at the buffer function of the GeometryService?

http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/tasks/GeometryService.html

and BufferParameters:

http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/tasks/supportClasses/BufferParameters.html

This would accomplish what you are looking for.
0 Kudos
TimGeiges
New Contributor
Perfect!
The example given at http://help.arcgis.com/en/webapi/flex/samples/index.html#/Buffer_using_Geometry_Service/01nq0000002q... shows exactly what I needed.

Thanks so much!
0 Kudos