Skip to content Skip to sidebar Skip to footer

Show Marker Labels Along With Default Pin Icon All The Time On Google Maps For Android Platform

I have multiple locations that I need to display on my map. I want the info/label for each marker to display on the maps along with the pin icon whether the marker/pin is clicked o

Solution 1:

Only one InfoWindow is displayed at a time on GoogleMap. You can't display multiple InfoWindow at a time.

You have to use IconGenerator for that. You can set a view to IconGenerator and make a Bitmap form that view. You can make a view that contains both Marker and your InfoWindow View. Use that view to crate your Desired Marker.

You can check this answer

Solution 2:

From the documentation, there is a text saying that the info window is shown one at a time, so there is no way to do that:

"An info window allows you to display information to the user when they tap on a marker. Only one info window is displayed at a time. If a user clicks on a marker, the current info window will be closed and the new info window will be displayed. Note that if the user clicks on a marker that is currently showing an info window, that info window closes and re-opens."

You can read more here: https://developers.google.com/maps/documentation/android-sdk/infowindows

Post a Comment for "Show Marker Labels Along With Default Pin Icon All The Time On Google Maps For Android Platform"