Select to view content in your preferred language

Can we combine Graphics?

689
1
09-18-2017 04:36 PM
BikeshMaharjan1
Regular Contributor

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 Notable 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