The customization of the markers from version 2 of goggle maps of Android is extremely simple , I'll illustrate a simple example of a marker with image , title and custom description .
mMap.addMarker(new MarkerOptions() .position(new LatLng(41.0692385,14.3333778)) .title("Geek-Blog.it") .snippet("Altro testo") .icon(BitmapDescriptorFactory.fromResource(R.drawable.icon)));
This banal example we indicated the location , title, detail and icon . Obviously the marker will be placed after the map is initialized. you can also clean up the map with the clear method ( nMap.clear ( ) ; ) , or more specifically go to delete a single marker :
Marker marker = map.addMarker(..);
Invoking the remove method of marker:
marker.remove();