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

  2. Erel

    Erel Administrator Staff Member Licensed User

    Something like:
    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)
    End Sub
    Roger Daley likes this.
  3. daniedb

    daniedb Active Member Licensed User

    Thanks Erel, as always a life saver...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice