Creates a LatLngBounds object by defining south-west and north-east corners of the rectangle.
Creates a LatLngBounds object defined by the geographical points it contains. Very useful for zooming the map to fit a particular set of locations with fitBounds.
Returns true if the rectangle contains the given one.
boolean
Returns true if the rectangle contains the given point.
boolean
Returns true if the rectangle is equivalent (within a small margin of error) to the given bounds.
boolean
Extends the bounds to contain the given point.
Extends the bounds to contain the given bounds.
Returns the center point of the bounds.
Returns the north-east point of the bounds.
Returns the north-west point of the bounds.
Returns the south-east point of the bounds.
Returns the south-west point of the bounds.
Returns true if the rectangle intersects the given bounds.
boolean
Returns true if the bounds are properly initialized.
boolean
Returns bigger bounds created by extending the current bounds by a given percentage in each direction.
Returns a string with bounding box coordinates in a 'southwest_lng,southwest_lat,northeast_lng,northeast_lat' format. Useful for sending requests to web services that return geo data.
string