I want to remove a current marker after long click on map anywhere and recreate a new marker at that point. I have cleared google map on long click on map and new marker is crea
Just clear the google map before adding marker. Like this:
@Override public void onMapLongClick(LatLng latLng) { googleMap.clear(); googleMap.addMarker(new MarkerOptions() .position(latLng) .title(latLng.toString()) .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED))); }