| Issue 1443: | extend() and union() should return the LatLngBounds object | |
| 4 people starred this issue and may be notified of changes. | Back to list |
Currently, extend() and union() don't return a value, so we have to write: 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.
Jul 5, 2009
Hey, thanks for considering this. Of course, the idea could be applied to other places of the API as well, basically to all setter functions without return value. map.set_center(latLng).set_zoom(zoom); marker.set_icon(foo).set_cursor(bar); etc.
Jan 11, 2010
(No comment was entered for this change.)
Status:
FixedNotReleased
Jan 19, 2010
(No comment was entered for this change.)
Status:
Fixed
Labels: Fixed-25
Jan 28, 2010
(No comment was entered for this change.)
Labels:
-Fixed-25 Fixed-27
|
|
| ► Sign in to add a comment |
Labels: Internal-1961349