hi,
i'm using googleMaps in my app and i need to konw my position: latitude and longitude.
Here is my code:
Log result is:
MyLat: 0
MyLon: 0
but on google map the position is correct....(blue button near rome):
What should i do?
thx
Marco
i'm using googleMaps in my app and i need to konw my position: latitude and longitude.
Here is my code:
B4X:
gmap.Initialize("gmap", ApiKey)
lisPNmap.AddView(gmap, 0, 0, 100%X, 100%y)
gmap.MapType = gmap.MAP_TYPE_TERRAIN
gmap.GetUiSettings.CompassEnabled = True
gmap.GetUiSettings.MyLocationButtonEnabled = True
gmap.MyLocationEnabled = True
Dim mylat As Double
Dim mylon As Double
mylat=gmap.MyLocation.Latitude
mylon=gmap.MyLocation.Longitude
Log("MyLat: " & mylat)
Log("MyLon: " & mylon)
Log result is:
MyLat: 0
MyLon: 0
but on google map the position is correct....(blue button near rome):
What should i do?
thx
Marco
Last edited: