title: How to update an Android Itemized overlay which is displayed on a map
body: <p>I have a custom overlay which should move around as the user (player) moves around. But the way I have it right now it just keeps adding more and more overlays making the icon have a trailing effect.</p>
  
  <p>I attempted to remove the overlay on each location update but it appears to not be removing it. Though, I'm not sure if actually removing it is the correct way to accomplish what I'm trying to do. Is there a way to just update the location and refresh the map?</p>
  
  <pre><code>    public void drawMeOnMap()
  {
      MapView mapView = (MapView) findViewById(R.id.mapView);
      mapOverlays = mapView.getOverlays();
      drawable = this.getResources().getDrawable(R.drawable.p18);
      itemizedOverlay = new IOverlay(drawable);
  
      if (mapOverlays.contains(itemizedOverlay))
      {
          mapOverlays.remove(itemizedOverlay);
      }
  
      GeoPoint point = new GeoPoint((int)(1E6*player.latitude), (int)(1E6*player.longitude));
      OverlayItem item = new OverlayItem(point, "", "");
      itemizedOverlay.addOverlay(item);
      mapOverlays.add(itemizedOverlay);
  }
  </code></pre>
  
  <p>Any guidance would be greatly appreciated.</p>