AnsweredAssumed Answered

How to group together GraphicsOverlay components?

Question asked by kubark42 on Dec 7, 2018
Latest reply on Dec 10, 2018 by LDanzinger-esristaff

For abstraction reasons, I would like to be able to create components from GraphicsOverlays and then group these components together as I integrate them into my mapping app. For instance, I have made a circle component which draws a geodetic circle given a center and radius, hiding the complexity of the actual GeometryEngine call. I would like to use that circle at various levels in the program, and so it doesn't make sense to have it all be on the same level with the MapView.

 

I can't seem to do the naive thing of nesting a GraphicsOverlay inside a GraphicsOverlay. The program does't give any errors and functions inside the nest work, but the program stops drawing the graphics. I don't think it's the classic QML problem of having a 0 pixel wide component, so I'm at a loss here for what to do next.

 

How can I make complex components and then use these components to make other, even more complex components?

Outcomes