Find the position of markers on a Google map when moving camera positions

How to find the position of markers and markers (Lat,Lan) on a Google map when moving the position of the camera.?

+6
source share
1 answer

Using oncamera change listener you can get latitude and longitude

 map.setOnCameraChangeListener(new OnCameraChangeListener() { @Override public void onCameraChange(CameraPosition position) { LatLng latvalue = position.target; double lat = latvalue.latitude; double lng = latvalue.longitude; } }); 
+2
source

All Articles