void geometryService_ProjectCompleted(object sender, GraphicsEventArgs e) { Graphic resultGraphic = e.Results[0]; Graphic sourceGraphic = e.UserState as Graphic; if (resultGraphic.Geometry.Extent != null && sourceGraphic != null) { sourceGraphic.Geometry = resultGraphic.Geometry; graphicsLayer.Graphics.Add(sourceGraphic); MyMap.PanTo(sourceGraphic.Geometry); } }
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.