Hello,
I'm encountering an issue with Google Maps in my application. When I use Google Maps in full screen mode, the camera position works correctly. However, when I place the map inside a 1:1 aspect ratio panel, the camera position does not focus as expected.
Works well
Position is wrong
Despite setting the camera position , it doesn't focus correctly when the map is placed in the 1:1 panel. Any suggestions on how to resolve this issue would be greatly appreciated.
Thank you!
I'm encountering an issue with Google Maps in my application. When I use Google Maps in full screen mode, the camera position works correctly. However, when I place the map inside a 1:1 aspect ratio panel, the camera position does not focus as expected.
Works well
B4X:
gmap.Initialize("gmap", ApiKey)
Root.AddView(gmap, 0,0,GetDeviceLayoutValues.Width,GetDeviceLayoutValues.Height)
Position is wrong
B4X:
gmap.Initialize("gmap", ApiKey)
pnl.AddView(gmap, 0, 0, pnl.Width,pnl.Width)
Despite setting the camera position , it doesn't focus correctly when the map is placed in the 1:1 panel. Any suggestions on how to resolve this issue would be greatly appreciated.
Thank you!