I'm using feature reduction on a graphic overlay and I'm wondering if there is there a way to tell which graphics in the overlay are being clustered?
Maybe you can test the type of the graphic, such as if graphic is AggregateGeoElement . Does this work in your situation?
Is there a way to see all of the GeoElements in an overlay? Both Graphic and AggregateGeoElement are subclasses of GeoElement I believe. From what I can tell graphicOverlay.graphics returns the Graphics in the overlay and not the AggregateGeoElements.
There isn't a way to get all the graphics, including the cluster graphics from an overlay. The clusters are computed on-the-fly, which means they aren't stored in the overlay.
Can you share more details and explain why you want to tell which graphic is being clustered? Depending on user interaction, a graphic might be clustered into different clusters. We'd like to know the workflow you want to achieve so that we might provide more information.
For each of the graphics on the map we are showing a custom popover with some information about what's happening at that point. As the user pans/zooms we calculate which graphics are currently in the maps visible area and show the popover above the graphic. The goal is to hide the popover for graphics that are clustered, while keeping it visible for graphics that's aren't in a cluster.
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.