Cluster multiple graphics layers as one?

Discussion created by on Jan 20, 2012
Latest reply on Dec 18, 2013 by camelot
I was wondering if there is a way to use one GraphicsClusterer object on multiple graphics layers. My ultimate goal is to have items on two separate GraphicsLayers grouped in the same cluster.

The way we have been doing this up until now is rendering all graphics on the same layer and just using different subclasses of the Graphic object to represent them. Using a custom subclasse of GraphicsClusterer we are customizing the clustering logic and display based on what types of items are in clustered areas.  (I have recently updated our map to use the GraphicsDataSource which has required me to separate my items onto two different layers because the items come from two different observable collections and the GraphicsDataSource only supports/works with one collection as its items source, which makes sense. )

Any suggestions as how to go about creating or configuring a cluster would be appreciated or any info on maybe a better way to setup/manage my layers.