Android Question Google Maps - Rotate Map according to BEaring

Discussion in 'Android Questions' started by daniedb, Jun 7, 2015.

  1. daniedb

    daniedb Active Member Licensed User

    Hi Guys

    Anyone know how to turn the google maps according to a Value (eg bearing), so that I always follow "upwards" or movement always Upwards

    Thanks
    D
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Something like:
    Code:
    Sub SetBearing(bearing As Double)
     
    Dim currentCamera = gmap.CameraPosition
     
    Dim newCamera As CameraPosition
     newCamera.Initialize2(currentCamera.Target.Latitude, currentCamera.Target.Longitude, currentCamera.Zoom, bearing, currentCamera.Tilt)
     gmap.AnimateCamera(newCamera)
    End Sub
     
    Roger Daley likes this.
  3. daniedb

    daniedb Active Member Licensed User

    Thanks Erel, as always a life saver...
     
Loading...