melisandre melisandre - 14 days ago 6
Android Question

How to make marker titles on Google Maps display all at once automatically?

I created a mobile application which uses Google Maps but I can't seem to make the marker titles display automatically. I always have to tap the marker for its title to appear. Is there any way for the marker title to automatically display once it appears on the map? I want to be able to display the titles of the markers all at once.

Answer

use showInfoWindow() like below

Marker marker = mMap.addMarker(new MarkerOptions().position(currentPosition).title("Your text"));
marker.showInfoWindow();
Comments