Android Question How to detect devices using Erel's GoogleMaps example

I understand correctly, how can I center the map on that marker so that when opening the activity, it shows the area corresponding to the map where the marker is located? Is it possible to center the map or initialize the map in that corresponding area?
 
Upvote 0

TILogistic

Expert
Licensed User
Longtime User
?
this preserves the camera properties and only moves to the marker position
B4X:
    Dim CameraPosition1 As CameraPosition = GoogleMaps1.CameraPosition
    Dim NewCameraPosition As CameraPosition
    NewCameraPosition.Initialize2(MarkerIconLocation.Position.Latitude, MarkerIconLocation.Position.Longitude, CameraPosition1.Zoom, CameraPosition1.Bearing, CameraPosition1.Tilt)
    GoogleMaps1.AnimateCamera(NewCameraPosition)
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…