Hey,
I can not determine the current position. How does work in B4I?
My current code:
the output are "0"
I can not determine the current position. How does work in B4I?
My current code:
B4X:
Private Sub AddMap
gmap.Initialize("gmap", Main.API_KEY_2)
pnl_gmap.AddView(gmap, 0, 0, 100%X, 100%y)
'gmap.MapType = gmap.MAP_TYPE_TERRAIN
gmap.GetUiSettings.CompassEnabled = False
gmap.GetUiSettings.MyLocationButtonEnabled = False
gmap.MyLocationEnabled = True
Msgbox(gmap.MyLocation.Latitude & " und : " & gmap.MyLocation.Longitude ,"title")
End Sub
the output are "0"