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.
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
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
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....