A LatLngBounds
instance
represents a rectangle in geographical coordinates, including one that
crosses the 180 degrees longitudinal meridian.
Access by calling const {LatLngBounds} = await google.maps.importLibrary("core")
. See
https://developers.google.com/maps/documentation/javascript/libraries.
LatLngBounds for the max bounds of the Earth. These bounds will encompass the entire globe.
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
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.Access by calling
const {LatLngBounds} = await google.maps.importLibrary("core")
. See https://developers.google.com/maps/documentation/javascript/libraries.