Legend with Clusterer layers.

2136
1
01-02-2014 11:08 AM
Labels (1)
SteveMadsen
New Contributor
I have a legend where I added multiple graphics layers that I have added FlareClusterers to and it seems to have added things to each of the layers in the legend for them. I want to have those not show up. Does anyone know how to have them not show up?

with clustering
[ATTACH=CONFIG]30191[/ATTACH]

without clustering
[ATTACH=CONFIG]30192[/ATTACH]
0 Kudos
1 Reply
DominiqueBroux
Esri Frequent Contributor
To remove all legend swatches you can set Legend.LegendItemTemplate to null (in XAML LegendItemTemplate="{x:Null}").

If you want to remove the swatches for the clustered graphics layers and keep them for others layers, you have to do it by code. On event Legend.Refreshed, remove the LegendItems for the clustered layers.
0 Kudos