Constructs a rectangle from the points at its south-west and north-east corners.
Returns true if the given lat/lng is in this bounds.
Returns true if this bounds approximately equals the given bounds.
Extends this bounds to contain the given point.
Computes the center of this LatLngBounds
Returns the north-east corner of this bounds.
Returns the south-west corner of this bounds.
Returns true if this bounds shares any points with the other bounds.
Returns if the bounds are empty.
Converts to JSON representation. This function is intended to be used via {@link JSON.stringify}.
Converts the given map bounds to a lat/lng span.
Converts to string.
Returns a string of the form "lat_lo,lng_lo,lat_hi,lng_hi" for this bounds, where "lo" corresponds to the southwest corner of the bounding box, while "hi" corresponds to the northeast corner of that box.
Extends this bounds to contain the union of this and the given bounds.
Generated using TypeDoc
A LatLngBounds instance represents a rectangle in geographical coordinates, including one that crosses the 180 degrees longitudinal meridian.
Maps JavaScript API