Fixed
Status Update
Comments
pa...@gmail.com <pa...@gmail.com> #2
not sure if this is a bug or the intended behaviour
this is a way to get the new bounds
zoomChangeListener = google.maps.event.addListener(map,'zoom_changed',function (event) {
zoomChangeBoundsListener = google.maps.event.addListener(map,'bounds_changed',function (event) {
console.log(map.get_bounds());
google.maps.event.removeListener(zoomChangeBoundsListener);
});
});
this is a way to get the new bounds
zoomChangeListener = google.maps.event.addListener(map,'zoom_changed',function (event) {
zoomChangeBoundsListener = google.maps.event.addListener(map,'bounds_changed',function (event) {
console.log(map.get_bounds());
google.maps.event.removeListener(zoomChangeBoundsListener);
});
});
ro...@gmail.com <ro...@gmail.com> #3
Not sure- I'll discuss with team.
Description
myBounds.extend(myPoint);
myBounds.union(yourBounds);
map.fitBounds(myBounds);
If these functions returned the modified object, we could chain these calls, and write:
map.fitBounds(myBounds.extend(myPoint).union(yourBounds));
Much nicer.