3
votes
3answers
6k views

How to calculate the optimal zoom-level to display two or more points on a map

We want to display several markers on a static map and want to calculate the optimal zoom-level like Google Maps does. We already calculated the bounding rectangle and the centerpoint of the map but ...