# Show Clustering Bubble For Single Item in RadMap

## Environment

<table>
    <tbody>
	    <tr>
	    	<td>Product</td>
	    	<td>RadMap for WPF</td>
	    </tr>
    </tbody>
</table>

## Description

How to show [clustering](https://www.telerik.com/products/wpf/documentation/controls/radmap/features/visualization-layer/heatures-clustering) bubble for single item in RadMap.

## Solution

1. Create a class inheriting **DefaultClusterGenerator** and set its **AutoExpandWhenSingle** property to **False**.

   ```C#
   	public class CustomClusterGenerator : DefaultClusterGenerator
       {
           public CustomClusterGenerator()
           {
               this.AutoExpandWhenSingle = false;
           }
       }
   ```

2. Set the CustomClusterGenerator to the **ClusterGenerator** property of the RadMap.

   ```XAML
   	<telerik:RadMap >
           <telerik:RadMap.Resources>
               <local:CustomClusterGenerator x:Key="CustomClusterGenerator" />
           </telerik:RadMap.Resources>
           <telerik:VisualizationLayer ClusteringEnabled="True"
                                       ClusterGenerator="{StaticResource CustomClusterGenerator}">
           </telerik:VisualizationLayer>
       </telerik:RadMap>
   ```

> The namespace "local" refers to the namespace, where the "CustomClusterGenerator" class is defined.

## See Also

* [Clustering](https://www.telerik.com/products/wpf/documentation/controls/radmap/features/visualization-layer/heatures-clustering)
