public class VisibleRegion
VisibleRegion实现了Parcelable。它包含四个点,这四个点定义了地图相机的四边形可视区域。因为相机可能会倾斜,所以这个多边形可以是梯形而不是矩形。如果相机正好位于可视区域中心上方,则形状为矩形,但如果相机倾斜,则形状将显示为最短边最接近视点的梯形。
| Name | Type | Description |
| farLeft | public final LatLng | 定义相机的左上角。 |
| farRight | public final LatLng | 定义相机的右上角。 |
| latLngBounds | public final latLngBounds | 定义的可视区域的最小边界框。 |
| nearLeft | public final LatLng | 定义相机的左下角。 |
| nearRight | public final LatLng | 定义相机的右下角。 |
| Construction Method |
| public VisibleRegion(LatLng nearLeft, LatLng nearRight, LatLng farLeft, LatLng farRight,LatLngBounds latLngBounds) |
| Return type | Method name |
| boolean | equals(Object o) |
| int | hashCode() |
| String | toString() |
| void | writeToParcel(Parcel out, int flags) |
| Method |
| public boolean equals(Object o) |
| 判断两个VisibleRegion对象是否相等。 |
Parameters:
| Parameter name | Parameter desc |
| o | 另一对象名称。 |
Return:
| Return type | Parameter desc |
| boolean | VisibleRegion对象是否相等。true为相等,false为不相等。 |