Android Question Marker click not showing snippet

jotajota52

Member
I'm using a mapfragment to show some markers on the map.

B4X:
Dim MyMark As Marker = MapNewBox.GetMap.AddMarker3(latitud,longitud,txtBoxName.Text,box)
MyMark.Draggable=False
MyMark.Visible=True
MyMark.InfoWindowShown=True

This works well, and I'm can see the snippet on top of the last marker.
(box is a custom marker defined some lines of code above)
But when I later click on one of the markers, nothing happens.
I've been looking at the code sample for googlemaps made by Erel, and I don't see any
sub to catch the marker click. So I cant understand why it's not showing in my map.

So I tried using the googlemapsextra lib and:

B4X:
Private Sub MapNewBox_Ready
    Dim mycamera As CameraPosition
    mycamara.Initialize(mylat,mylon)
    MapNewBox.GetMap.MoveCamera(mycamera)
    
    Dim InfoWindowAdapter1 As InfoWindowAdapter
    InfoWindowAdapter1.Initialize("InfoWindowAdapter1")
    Do Until InfoWindowAdapter1.IsInitialized
        Sleep(100)
    Loop
    Dim gmapextra As GoogleMapsExtras
    gmapextra.SetInfoWindowAdapter(MapNewBox.GetMap, InfoWindowAdapter1)

End Sub

I understand that the Sub InfoWindowAdapter1_GetInfoWindow is not needed
if I just want to show the standard infowindow.

But that isn't working either.

Any help will be greatly appreciated!
George
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…