Android Question Set the position of camera in google map extra

BerlinCoder

Member
Licensed User
Hi,
I need to set the position of camera on the google map, based on few markers on the map. In other words, I want to zoom and change the position of the camera in my project based on the points on the map which the users would select. Thank you for your consideration.

Best
 

DonManfred

Expert
Licensed User
Longtime User
Maybe this?
B4X:
Sub MapFragment1_MarkerClick (SelectedMarker As Marker) As Boolean 'Return True to consume the click
    Dim cp As CameraPosition
    cp.Initialize(SelectedMarker.Position.Latitude, SelectedMarker.Position.Longitude, 15)
    gmap.AnimateCamera(cp) ' or MoveCamera(cp)
    Return True   
End Sub
 
Upvote 0

BerlinCoder

Member
Licensed User
No, as I said for few points. For example, a user chooses two points in a city. Afterwards, I need to move and change the zoom of the camera in order to show these points....
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…