I have an ArrayList, each of these LatLng is a marker on my map The list can have anywhere from 0 to 1 to n points. They may or may not be distant within each others.
Can someone help me, given a height ("h"dp) and a width ("w"dp) of the map area, determine:
- the "center" of this set
- the appropriate zoom level (z) of this set, so that all markers are visible within the frame of size "h" by "w", but a (z+1) zoom level will not show all the points.