public final class VisibleRegion
extends java.lang.Object
implements android.os.Parcelable
| 限定符和类型 | 字段和说明 |
|---|---|
LatLng |
farLeft
可视区域的左上角。
|
LatLng |
farRight
可视区域的右上角。
|
LatLngBounds |
latLngBounds
由可视区域的四个顶点形成的经纬度范围
The latitude and longitude range formed by the four vertices of the visible area. |
LatLng |
nearLeft
可视区域的左下角。
|
LatLng |
nearRight
可视区域的右下角。
|
| 构造器和说明 |
|---|
VisibleRegion(LatLng nearLeft,
LatLng nearRight,
LatLng farLeft,
LatLng farRight,
LatLngBounds latLngBounds)
给出可视区域四个角的坐标,创建VisibleRegion对象。
|
public final LatLng nearLeft
public final LatLng nearRight
public final LatLng farLeft
public final LatLng farRight
public final LatLngBounds latLngBounds
public VisibleRegion(LatLng nearLeft, LatLng nearRight, LatLng farLeft, LatLng farRight, LatLngBounds latLngBounds)
经纬度参数必须定义一个凸形(得到的图形边缘不相交)。无边界检查时在运行时执行。
The latitude and longitude parameters must define a convex shape (the resulting shape edges do not intersect). Boundary checks are performed at runtime when no boundary check is specified.
nearLeft - 包含经纬度坐标的LatLng对象,区域离视野近的左顶点。
nearRight - 包含经纬度坐标的LatLng对象,区域离视野近的右顶点。
farLeft - 包含经纬度坐标的LatLng对象,区域离视野远的左顶点。
farRight - 包含经纬度坐标的LatLng对象,区域离视野远的右顶点。
latLngBounds - 最小边界框,包含在这个类里定义的可见区域。
如果这个框跨越180°子午线(垂直线从北向南),farRight的经度是负数,farLeft的经度是正数。
这个在nearLeft和nearRight同样适用。
public boolean equals(java.lang.Object o)
equals 在类中 java.lang.Objecto - java.lang.Object。如果两个对象是同一个,
或者四个角和范围相同,返回true;否则返回false。