Android Question Google Marker Info Window

iCAB

Well-Known Member
Licensed User
Longtime User
Hi All

I need to be able to display labels ( or event better info window ) for all displayed markers separately or at the same time. Somehow I am having difficulties achieving the above.

I have a map that stores all the displayed markers and whatever additional necessary information needed.
So I do have a reference to all displayed markers. When I display the info window for one marker, the info window for the previous marker automatically closed. Just in case, to avoid any possible logical bugs I added the code to display info window for each marker as it is being created. The result is still the same.

Here is the code I am using

B4X:
    Dim Marker1 As Marker
    Dim MarkerOptions1 As Marker
   
     Marker1.Initialize
   
    MarkerOptions1.Initialize
    MarkerOptions1.Position2(dbLat, dbLng).Snippet(Snippet).Title(Title).Visible(blnVisible)
   
    Dim BitmapDescriptor1 As BitmapDescriptor
    Dim BitmapDescriptorFactory1 As BitmapDescriptorFactory
    BitmapDescriptor1=BitmapDescriptorFactory1.FromAsset(IconFile)
    MarkerOptions1.Icon(BitmapDescriptor1)
    Marker1 = GoogleMapsExtrasRef.AddMarker( GmapRef, MarkerOptions1)
    Marker1.InfoWindowShown = True


any ideas what I am doing wrong in here?

Thanks in advance
 

eurojam

Well-Known Member
Licensed User
Longtime User
IMO google maps only shows it's default behaviour - only one marker with a Infowin, so your code is ok...
 
Upvote 0

iCAB

Well-Known Member
Licensed User
Longtime User
Thanks eurojam.
I'll check to see what others are using. I have seen applications that display one label per icons.
 
Upvote 0
Top