AnsweredAssumed Answered

Editing Graphics Layer

Question asked by shaun_weston-eagle-co-nz-esridist on May 28, 2012
Latest reply on Jun 5, 2012 by shaun_weston-eagle-co-nz-esridist
I'm just trying to develop a toolbar that enables drawing and editing of the drawings. I'm using this Graphics>Interactively sample, which is really good apart from two things
[ATTACH=CONFIG]14692[/ATTACH]

- After you create a graphic, then edit where it is located, then try and edit another graphic, the first graphic reverts back to where it originally was. So, I'm just trying to figure out how to save the graphic in it's new position once it has been edited. I figure it's editing this function some how?
private void GraphicsLayer_MouseLeftButtonUp(object sender, GraphicMouseButtonEventArgs e)         {             if (EnableEditVerticesScaleRotate.IsChecked.Value)  {                 Editor editor = LayoutRoot.Resources["MyEditor"] as Editor;                 if (e.Graphic != null && !(e.Graphic.Geometry is ESRI.ArcGIS.Client.Geometry.MapPoint))   {                     editor.EditVertices.Execute(e.Graphic);                 }             }         }


- I was wondering how to go about adding text into a graphics layer. So I want a user to be able to select a point on a map and then this would bring up a textbox where they can type in some info.

Any help on these two things would be awesome :)

Attachments

Outcomes