title: Remove Multiple markers on Map with updated markers
body: <p>I have this trivial problem. I have Listener method, that listens for markers. When someone changes location it fires listener method which in turn fires <code>onLocationLoaded()</code> method and passes the <code>MarkerOption</code> object, that has all the location and other details. Now my problem is to save this <code>MarkerOption markersReceived</code> object in Marker object with special ID, so that later on I can find them by this id to remove them indvidually from the map when location for the same MarkerOption gets updated. for unique id I have saved it in title of MarkerOption.</p>
  
  <p>So here is my code</p>
  
  <pre><code>final Marker[] markerTrack = new Marker[3];
  final String[] idTrack = new String[3];
  public void onLocationLoaded(MarkerOptions markersReceived) {
      if(markersReceived != null) {
      /// Check if marker is implemented if yes then remove and overwrite exixting else make new array
  
          for(int i =0 ; i &lt; markerTrack.length; i++){
              if(idTrack[i] == markersReceived.getTitle()){
                  markerTrack[i].remove();
                  markerTrack[i] = mMap.addMarker(markersReceived);
  
              }else{
                  //make new marker
                  markerTrack[i] = mMap.addMarker(markersReceived);
                  idTrack[i] = markersReceived.getTitle();
              }
          }
  </code></pre>
  
  <p>So here in <code>onLocationLoaded(MarkerOptions markersReceived)</code> method it receives multiple MarkerOptions object, problem is to identify similar objects and update them in map and remove previous marker from the map. this remove thing is bugging me the map gets filled with new and previous markers</p>
  
  <p>PS mMap.clear() doesn't help. Anyways Thanx for the help in advance.</p>