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
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.