Can we combine Graphics?

379
1
09-18-2017 04:36 PM
BikeshMaharjan1
New Contributor III

I have collection of graphic in GraphicsOverlay.Graphics. Can I combine the collection into a single Graphic?

Thanks!

0 Kudos
1 Reply
dotMorten_esri
Esri Frequent Contributor

You can't merge graphics, but you can often union their geometries if they are the same geometry type (ie you can't merge a line and a polygon, but you can merge two polygons).

You can use the GeometryEngine.Union to accomplish this, then create a new graphic with this new geometry.

0 Kudos