I am new in android, I am making application which have Google Map V2. I want to animateCamera Zoom value at runtime. It should be depend on the current location(latitude and longitude) and Destination Location(destination latitude and longitude).
It should be Zoom such it should show both marker as nearest possible and should not require any pan, zoom in/out gesture on mapv2.
I used this code but I need to pan gesture to see both market on the Map. I want it should be default as nearest possible and should not require any pan gesture.
map.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(latitude, longitude), 12.0f));
Thanks in advance.