The links provided by @Marcelo & @Doc are good for understanding the derivation of the Lat Lng:
- http://www.cienciaviva.pt/latlong/anterior/gps.asp?accao=changelang&lang=en
- https://groups.google.com/forum/?hl=en&fromgroups=#!msg/google-maps-api/oJkyualxzyY/pNv1SE7qpBoJ
- https://en.wikipedia.org/wiki/Mercator_projection#Mathematics_of_the_Mercator_projection
But if you just want an answer for the maximum bounds for Google Maps:
Latitude: -85 to +85
(actually -85.05115 for some reason)
Longitude: -180 to +180
Try it for yourself on the Google Maps:
(You may need to Zoom Out. See how the pin is at the “edge” of the world – these are the limits)
So in your code Try:
var strictBounds = new google.maps.LatLngBounds(
new google.maps.LatLng(85, -180), // top left corner of map
new google.maps.LatLng(-85, 180) // bottom right corner
);
Please edit this wiki (or update your question) once you have the answer. Thanks