Select to view content in your preferred language

Draw mode of polygon feature layer

1783
2
10-24-2011 04:56 AM
rbae
by
Regular Contributor
I have a polygon feature layer that I'm editing using the feature service/editor widget/template picker and everything is working great.

I would like to change the draw mode so that I can digitize rectangles and circles as well, whereas the default mode is polygon, and the editor widget gives me the option to use freehand.

Applying the draw mode to the map doesn't appear to work.

Is there a special Graphics Layer that acts as the default layer for editing?

Thanks!

-Ryan
0 Kudos
2 Replies
JenniferNery
Esri Regular Contributor
You would have to use Draw class if you want to be able to delineate from the feature service's defined drawing tool (polygon). At the DrawCompleted event, you can convert Envelope to Polygon geometry(DrawMode=Rectangle). Circle, Ellipse, Triangle, and Arrow already results to a Polygon geometry. You can also update graphic.Attributes to use the selected feature template's PrototypeAttributes, this will give your graphic the correct symbol.
0 Kudos
rbae
by
Regular Contributor
Thanks Jennifer.  I was actually hoping that the layers were symbolized in a graphics layer that I could have access to, since the samples provide an option to switch to freehand mode.
0 Kudos