Check for existing markers before adding another
问题 Google Maps API v2 Whilst I was waiting for another app to be finalised I was creating another out of interest that would only enable 1 marker to be added to a map at a time (I love maps I do). I currently have this code which will clear the map if a marker already exists and then add another one. But what I wanted was for it to show a message telling to user to clear the map before it will allow another marker to be added. @Override public void onMapClick(LatLng position){ if (position !=