Hi Everyone:
I want to create a widget that allows a user to drag and drop pre-defined geometry onto the map, which can then be the source of a geoprocessor or anything else you can do with a graphics layer. Is my proposed method the best way to do this, or is it possible to drag around graphics directly in the ESRI Flex construct? (ie. do it as an esri graphic and not a spark rectangle)
My proposed method:
After some research I'm thinking a way this may be possible is to let a user create a spark object (ie.a Rectangle) at the click of a button. The user can then move the rectangle wherever they please and by hitting a "GO" button, ActionScript will take the coordinates of the path coords of the rectangle, convert them to map coordinates and then construct a polygon from them.
Is there a better way of doing this?
Thanks!