java.lang.Object | |
↳ | com.amazon.geo.mapsv2.model.LatLngBounds.Builder |
Class for building LatLngBounds
objects. To create a
LatLngBounds
object, call include(LatLng)
for each
LatLng
to include within the bounds, then call build()
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Initializes an empty
LatLngBounds.Builder . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new
LatLngBounds object using the LatLng
objects previously included with include(LatLng) . | |||||||||||
Adds the specified geographic point (
LatLng ) to the bounds. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Initializes an empty LatLngBounds.Builder
.
Creates a new LatLngBounds
object using the LatLng
objects previously included with include(LatLng)
.
LatLngBounds
object if include(LatLng)
was
called successfully at least once.IllegalStateException | if include(LatLng) was never
called.
|
---|
Adds the specified geographic point (LatLng
) to the bounds.
This attempts to increase the bounds in a minimal way. That is, the
method tries to increase the bounds both in eastward and westward
directions and chooses the smaller of the two. If both directions
result in bounds of same size, the bound is increased in the eastward
direction. The bounds may cross the anti-meridian in the process.
After adding points to the bounds with this method, call
build()
to create the LatLngBounds
.
point | A LatLng representing the geographic point to
add to the bounds. |
---|
LatLngBounds.Builder
object with the point
added.