Code example for Marker

Methods: isInfoWindowShown, remove

0
		if(marker==null){
			Log.e(TAG, "Marker is null. Did you instantiated the Marker properly?");
			return; 
		} 
		Marker oldMarker = marker.getMarker();
		oldMarker.remove();
		mMarkerMap.remove(marker.getId());
		 
		Marker newMarker = mGoogleMap.addMarker(options);
		if(oldMarker.isInfoWindowShown()){
			newMarker.showInfoWindow();
		} 
		mMarkerMap.put(marker.getId(), newMarker);
		updateMarkerIdRefIfNeeded(marker.getId(), oldMarker, newMarker);
		marker.setMarker(newMarker);
	} 
	 
	public void update(SupportMarker marker, LatLng position){
		if(marker==null){
			Log.e(TAG, "Marker is null. Did you instantiated the Marker properly?");
			return;