Polyline polyline = args.Geometry as Polyline; if (polyline != null && graphicsLayer.Graphics.Count>0 && graphicsLayer.Graphics[0].Geometry is Polygon) { Polygon polygon = graphicsLayer.Graphics[0].Geometry as Polygon; foreach (var path in polyline.Paths) { polygon.Rings.Add(path); } } else graphicsLayer.Graphics.Add(graphic);
<esri:Map x:Name="MyMap" Extent="-13054165,3850112,-13027133,3863559" esri:Editor.SnapDistance="20" esri:Editor.SnapKey="S">
- snap vertices to adjacent polygons while creating or editing vertices
- create and edit multi-part polygons
- create holes in polygons
- delete holes from polygons
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.