On Nov 16, 12:34 am, GG <[email protected]> wrote: > The two coordinates I am trying to fit are random. > How do I determine their relation to one another? > In order for LatLngBounds to work I need to know which is SW and which > is NE.
No, you don't. Use LatLngBounds like this: var bounds = new LatLngBounds(); bounds.extend(point1); bounds.extend(point2); Then the points' relation to each other doesn't matter. Incidentally, unless your points span the 180-degree longitude line, figuring out their relationship is a pretty trivial matter of comparing their latitude & longitude values... String -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=.
