Just to clarify, I want to ensure that my understanding is correct. In my Google Maps app, I want to display markers from specific continents to my users.
Question: Is it accurate to say that a boundary in the Google Maps API is an area defined by NO MORE AND NO LESS than two points (markers)?
From my math lessons, I know that I only need two points to draw a 2D area. So to show all markers from Europe to my users, would it suffice to find two coordinates, one from Iceland (top left) and the second from, let's say, southeast Turkey? (For the USA, I would select Seattle and Miami).
https://i.sstatic.net/UQECP.jpg
Therefore, the JavaScript code below functions perfectly. I would like to confirm if my understanding and chosen approach are correct. Does it make any sense?
var bounds = new google.maps.LatLngBounds();
bounds.extend(new google.maps.LatLng('66.057878', '-22.579047')); // Iceland
bounds.extend(new google.maps.LatLng('37.961952', '43.878878')); // Turkey
this.map.fitBounds(bounds);