title: Google maps custom marker icon with clustering on Android
body: <p>I have implemented the code of <a href="https://developers.google.com/maps/documentation/android-api/utility/marker-clustering" rel="noreferrer">Google Maps Clustering</a> </p>
  
  <p>This is the code in my activity</p>
  
  <pre><code>private void setUpClusterer() {
      mClusterManager = new ClusterManager&lt;StoreItem&gt;(this, mMap);
      mMap.setOnCameraChangeListener(mClusterManager);
      mMap.setOnMarkerClickListener(mClusterManager);
  }
  
  public void addItems(List&lt;Store&gt; stores) {
      for (Store store : stores) {
          mClusterManager.addItem(new StoreItem(store.getImage(), store.getLocation().getLatitude(), store.getLocation().getLongitude()));
      }
  }
  
  private void removeAllItems() {
      mClusterManager.clearItems();
  }
  </code></pre>
  
  <p>This is the StoreItem Class</p>
  
  <pre><code>public class StoreItem implements ClusterItem {
  
      private String url;
      private final LatLng mPosition;
  
      public StoreItem(String url, double lat, double lng) {
          this.url = url;
          mPosition = new LatLng(lat, lng);
      }
  
      @Override
      public LatLng getPosition() {
          return mPosition;
      }
  
      public String getUrl() {
          return url;
      }
  
      public void setUrl(String url) {
          this.url = url;
      }
  }
  </code></pre>
  
  <p>Now, I would like to to change the marker icons via the url parameter in the StoreItem class. </p>
  
  <p>How can I do this?</p>