Android Question [SOLVED] Google Maps Track Up

JMB

Active Member
Licensed User
Longtime User
Hi there, having fun with Google Maps and FusedLocationProvider!

Is it possible to make GoogleMaps automatically rotate so that it shows track up (sorry, BEARING up) rather than True North up? I can't see any setting in the designer for that.

Thanks.

JMB
 

JMB

Active Member
Licensed User
Longtime User
Hi.

I've got the location data from the fusedlocation in the main sub, but all the camera properties appear to be read only.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
from the fusedlocation
are you sure a fusedlocation has an Bearing?
but all the camera properties appear to be read only
You need to create a new CameraPosition
B4X:
    Dim cp As CameraPosition
    cp.Initialize2(pos1.Latitude,pos1.Longitude,gmap.CameraPosition.Zoom,bearing, tilt)' bering and tilt must be get from GPS Position i guess...
    gmap.AnimateCamera(cp)
 
Upvote 0

JMB

Active Member
Licensed User
Longtime User
Thanks Manfred.

The location variable is a standard Location type rather than a FusedLocation one.

I hadn't spotted the Initialize2 method. That works a treat passing the bearing and lat and lon in.

Thank you!
 
Upvote 0
Top