Android Question Add controls to google maps?

rscheel

Well-Known Member
Licensed User
Longtime User

Dear was looking at the link, I made the code as follows but does not work, do not know what I'm doing wrong.

B4X:
Sub MapFragment1_Ready
    gmap = MapFragment1.GetMap
   
    Dim JavaMapsObject As JavaObject
    JavaMapsObject = gmap.GetUiSettings
    JavaMapsObject.RunMethod("setMapToolbarEnabled", Array As Object(True))

    Dim cp As CameraPosition
    cp.Initialize(-33.469119900000000000 , -70.641997000000000000, 15)
    gmap.AnimateCamera(cp)
End Sub

 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…