I have multiple annotations on the map - although the user may need to scroll to see them. I want the user to be able to select a button to fit them all on the map - eliminating the need to scroll/manually resize.
I have determined the min. and max. latitudes and longitudes (e.g minLat, maxLat, minLong, maxLong) for the points I want to show on the map.
I'm struggling, however, with the specific formula to use to get the longitude and latitude properties to pass to mapview.setLocation. Any pointers on what formula I can use?