@JsType(isNative=true) public class LatLngBounds extends Object
Modifier and Type | Method and Description |
---|---|
Boolean |
contains(LatLng latlng)
Returns true if the rectangle contains the given point.
|
Boolean |
contains(LatLngBounds otherBounds)
Returns true if the rectangle contains the given one.
|
Boolean |
equals(LatLngBounds otherBounds)
Returns true if the rectangle is equivalent (within a small margin of error) to the given bounds.
|
L |
extend(LatLng latlng)
Extends the bounds to contain the given point.
|
L |
extend(LatLngBounds latlng)
Extends the bounds to contain the given bounds.
|
LatLng |
getCenter()
Returns the center point of the bounds.
|
double |
getEast()
Returns the east longitude of the bounds.
|
double |
getNorth()
Returns the north latitude of the bounds.
|
LatLng |
getNorthEast()
Returns the north-east point of the bounds.
|
LatLng |
getNorthWest()
Returns the north-west point of the bounds.
|
double |
getSouth()
Returns the south latitude of the bounds.
|
LatLng |
getSouthEast()
Returns the south-east point of the bounds.
|
LatLng |
getSouthWest()
Returns the south-west point of the bounds.
|
double |
getWest()
Returns the west longitude of the bounds.
|
Boolean |
intersects(LatLngBounds otherBounds)
Returns true if the rectangle intersects the given bounds.
|
Boolean |
isValid()
Returns true if the bounds are properly initialized.
|
LatLngBounds |
pad(double bufferRatio)
Returns bigger bounds created by extending the current bounds by a given percentage in each direction.
|
String |
toBBoxString()
Returns a string with bounding box coordinates in a 'southwest_lng,southwest_lat,northeast_lng,northeast_lat' format.
|
@JsMethod public L extend(LatLng latlng)
latlng
- the latlng@JsMethod public L extend(LatLngBounds latlng)
latlng
- the latlng@JsMethod public LatLng getSouthWest()
@JsMethod public LatLng getNorthEast()
@JsMethod public LatLng getNorthWest()
@JsMethod public LatLng getSouthEast()
@JsMethod public double getWest()
@JsMethod public double getSouth()
@JsMethod public double getEast()
@JsMethod public double getNorth()
@JsMethod public LatLng getCenter()
@JsMethod public Boolean contains(LatLngBounds otherBounds)
otherBounds
- the other bounds@JsMethod public Boolean contains(LatLng latlng)
latlng
- the latlng@JsMethod public Boolean intersects(LatLngBounds otherBounds)
otherBounds
- the other bounds@JsMethod public Boolean equals(LatLngBounds otherBounds)
otherBounds
- the other bounds@JsMethod public String toBBoxString()
@JsMethod public LatLngBounds pad(double bufferRatio)
bufferRatio
- the buffer ratio@JsMethod public Boolean isValid()
Copyright © 2018 G-Widgets. All rights reserved.