title: Google Maps Clustering not working with dynamic data
body: <p>I have a problem with the clustering of <code>GoogleMaps</code>. In my app im updating the map when the User zooms in or scrolls over the Map. Im using the <code>OnCameraIdleListener</code> (<a href="https://developers.google.com/android/reference/com/google/android/gms/maps/GoogleMap.OnCameraIdleListener" rel="nofollow noreferrer">link</a>) for this:</p>
  
  <pre><code>@Override
  public void onCameraIdle() {
     clearItems();
     do API Call
  }
  </code></pre>
  
  <p>When this happens im doing an API call with the new radius and im receiving a new list of objects that are visible inside my current radius. After i've received the data im drawing the new POIs to my map. Therefore i iterate over a list and for each element i create a cluster item and add it to the Cluster Manager.</p>
  
  <pre><code>CustomClusterItem clusterItem = new CustomClusterItem(new LatLng(item.getLocation().getLatitude(), item.getLocation().getLongitude()), poi); 
  mClusterManager.addItem(clusterItem);
  </code></pre>
  
  <p>and after the iteration im calling </p>
  
  <pre><code>mClusterManager.cluster();
  </code></pre>
  
  <p>Sadly the clustering does not work. It doesn't matter how far im zooming out of the map for example. Is there something im missing? </p>
  
  <p>Thanks in advance!</p>