public class Bounds
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
LngLat |
northeast
When map in North-up direction, the maps top-right location/coordinate
|
LngLat |
southwest
When map in North-up direction, the maps bottom-left location/coordinate
|
| Constructor and Description |
|---|
Bounds(LngLat southwest,
LngLat northeast)
Initialize object with southwest and northeast locations.
|
| Modifier and Type | Method and Description |
|---|---|
Bounds |
including(LngLat lngLat)
Get bounds including a new location
|
static Bounds |
makeBoundsForLocations(java.util.ArrayList<LngLat> listLocations)
Makes and returns
Bounds for given list of locations |
java.lang.String |
toString()
Convert object to string value
|
public LngLat southwest
public LngLat northeast
public Bounds(@NonNull
LngLat southwest,
@NonNull
LngLat northeast)
southwest - The map's bottom-left non-null location/coordinate, when map in North-up directionnortheast - The map's top-right non-null location/coordinate, when map in North-up direction@NonNull public java.lang.String toString()
toString in class java.lang.ObjectStringpublic Bounds including(LngLat lngLat)
lngLat - location to be include in current boundsBounds