Android Question Google Marker Info Window

Discussion in 'Android Questions' started by iCAB, Feb 20, 2016.

  1. iCAB

    iCAB Well-Known Member Licensed 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

    Code:
    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
     
  2. eurojam

    eurojam Well-Known Member Licensed User

    IMO google maps only shows it's default behaviour - only one marker with a Infowin, so your code is ok...
     
  3. iCAB

    iCAB Well-Known Member Licensed User

    Thanks eurojam.
    I'll check to see what others are using. I have seen applications that display one label per icons.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice