java.lang.Object | |
↳ | com.google.android.gms.maps.model.LatLngBounds |
An immutable class representing a latitude/longitude aligned rectangle.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
LatLngBounds.Builder | This is a builder that is able to create a minimum bound based on a set of LatLng points. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | NULL |
[Expand]
Inherited Constants
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
CREATOR | ||||||||||
|
northeast | Northeast corner of the bound. | |||||||||
|
southwest | Southwest corner of the bound. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Creates a new bounds based on a southwest and a northeast corner.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Creates a new builder.
|
||||||||||
|
Returns whether this contains the given
LatLng .
|
||||||||||
|
|
||||||||||
|
|
||||||||||
|
|
||||||||||
|
Returns a new
LatLngBounds that extends this LatLngBounds to include the given
LatLng .
|
||||||||||
|
|
||||||||||
|
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
|||||||||||
![]() |
Creates a new bounds based on a southwest and a northeast corner.
The bounds conceptually includes all points where:
southwest | southwest corner |
---|---|
northeast | northeast corner |
IllegalArgumentException | if the latitude of the northeast corner is below the latitude of the southwest corner. |
---|
Returns a new LatLngBounds
that extends this LatLngBounds to include the given LatLng
. This will return the smallest LatLngBounds that contains both this and the extra point.
In particular, it will consider extending the bounds both in the eastward and westward directions (one of which may wrap around the world) and choose the smaller of the two. In the case that both directions result in a LatLngBounds of the same size, this will extend it in the eastward direction.
point | a LatLng to be included in the new bounds |
---|
LatLngBounds
that contains this and the extra point.