Just got this simple test case:
var bounds = new google.maps.LatLngBounds( ) ;
bounds.extend( new google.maps.LatLng( -34, -56 ) ) ;
bounds.extend( new google.maps.LatLng( 34, -118 ) ) ;
bounds.extend( new google.maps.LatLng( 25, 121 ) ) ;
console.log( [ bounds.getSouthWest( ).lat( )
, bounds.getSouthWest( ).lng( )
, bounds.getNorthEast( ).lat( )
, bounds.getNorthEast( ).lng( ) ] ) ;
I might be totally wrong, or missing something, but I would expect to get a
bounding box like:
[-34, -118, 25, 121]
(The order is (SW-lat, SW-lng, NE-lat, NE-lng)
But I get this (from google maps)
[-34, 121, 34, -56]
Is this a bug or someone can explain this to me?
Thanks a lot,
David
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-maps-js-api-v3/-/iLOwWNeyWQ0J.
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=en.