I am trying to add a marker to my google map. Here is the code.
private final LatLng LOCATION_HOME= new LatLng(6.0334009,80.218384);
mMap.addMarker(new MarkerOptions()
.position(LOCATION_HOME)
.title("Hi I'm Home..:D")
.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_ROSE))
);
Using this code, I can get the marker title by touching the marker. How to hide marker title by touching it again?
I tried to find a method. But, glasses only say how to hide markers. but I need the marker to stay and hide only the name of the marker.
Thanks in advance.
user5259714
source
share