Hello
I use InfoWindowAdapter in my app.
i can show it well
But when i click on marker and InfoWindowAdapter shown,googlemap change camera to center map and my InfoWindowAdapter is placed on top
Why?
I attach shot of my problem
Dim extra As GoogleMapsExtras
Dim mm As InfoWindowAdapter
mm.Initialize("mm")
extra.SetInfoWindowAdapter(MapFragment1.GetMap,mm)
p2.Initialize("")
p2.LoadLayout("frmtemplatemapiten")
Activity.AddView(p2, 0, 0, Panel1.Width, Panel1.Height)
p2.RemoveView
And GetInfoContents code :
B4X:
Sub mm_GetInfoContents(Marker1 As Marker) As View
Dim data As Map
data = Library.Json2Map(Marker1.Snippet)
lbltitle.Text = data.Get("sTitle")
Return p2
End Sub
Dim extra As GoogleMapsExtras
Dim mm As InfoWindowAdapter
mm.Initialize("mm")
extra.SetInfoWindowAdapter(MapFragment1.GetMap,mm)
p2.Initialize("")
p2.LoadLayout("frmtemplatemapiten")
Activity.AddView(p2, 0, 0, Panel1.Width, Panel1.Height)
p2.RemoveView
And GetInfoContents code :
B4X:
Sub mm_GetInfoContents(Marker1 As Marker) As View
Dim data As Map
data = Library.Json2Map(Marker1.Snippet)
lbltitle.Text = data.Get("sTitle")
Return p2
End Sub
I dont have event for marker click.
Infowindow shown auto when i click on marker.
I use GetInfoContents instead of googlemap infowindow.So it show auto without writing any extra code for show it