Android Question GoogleMap ratio zoom

yfleury

Active Member
Licensed User
Hi All!
I have a MapFragement(1046 X 1336) on my phone

I have 2 marker on map. I can calculate distance between markers. I can calculate center (middle) of 2 markers.

I need to calculate the zoom level to show all markers.
How to calculate the zoom and be sure it fit to all screen phone?
 
Top