Is EditorWidget has Add functionality?

2801
2
07-28-2011 08:45 PM
Labels (1)
ErosSy
by
New Contributor
I found the below:

public Property   Freehand Gets or sets a value indicating whether this EditorWidget is using freehand draw mode when using   Add, Reshape, Union and Cut.


But can't see the Add icon inside the widget but Add Selection found.

If adding a graphic/shape is not belong to EditorWidget, would you guide me on what part of the API Reference or specifically of what class/widget to look for?
0 Kudos
2 Replies
JenniferNery
Esri Regular Contributor
If you are using ArcGIS Server 10 where feature services editing can be enabled, you can create a FeatureLayer with this REST endpoint as URL, EditorWidget can work against this layer when you set EditorWidget.Map property and set FeatureLayer.ID.

If you have installed WPF SDK, you can navigate to WPF sample (here's the SL counterpart): http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ToolkitEditorWidget

If you click on the "..." button, this expands Add options and you can check Freehand, this applies to Polyline/Polygon geometries. Select one of the templates from the Polygon layer and start drawing.

Draw and Editor.Add can work against GraphicsLayer (without being dependent on feature service). You can look at the following samples: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#DrawGraphics and http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsAutoSave. There will be some platform differences between Silverlight and WPF so I advise you look at your installed WPF SDK. I am only providing SL links to let you know where to find them. You can look at these classes in the API Reference: http://help.arcgis.com/en/webapi/wpf/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Draw_members.html and http://help.arcgis.com/en/webapi/wpf/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Editor_members.htm...
0 Kudos
ErosSy
by
New Contributor
Straight forward answer.
Thanks
0 Kudos