Hi!
I have a problem with the two methods fitBounds and getBounds ...
Look at this example :
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 10,
mapTypeId: google.maps.MapTypeId.ROADMAP
});
var ne = new google.maps.LatLng(
49.018140928715304, 2.5789534085937476);
var sw = new google.maps.LatLng(48.694669918528504, 2.1230207914062476);
var latLngBounds = new google.maps.LatLngBounds(sw, ne);
map.fitBounds (latLngBounds);
google.maps.event.addListener(map, 'bounds_changed', function() {
alert (map.getBounds().getNorthEast().lat());
// return 49.17909301188814
});
Why my North East Latitude has no exactly the same value than the alert ?
Thank's for your comments ...