Package com.baidu.mapapi.model
Class LatLngBounds
java.lang.Object
com.baidu.mapapi.model.LatLngBounds
- All Implemented Interfaces:
android.os.Parcelable
地理范围数据结构, 由西南以及东北坐标点确认
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final android.os.Parcelable.Creator<LatLngBounds>final LatLng该地理范围东北坐标final LatLng该地理范围西南坐标Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription返回该地理范围的互补地理范围boolean判断该地理范围是否包含一个地理位置int获取该地理范围的中心地理坐标voidDeprecated.V8.1及之后废弃toString()voidwriteToParcel(android.os.Parcel dest, int flags)
-
Field Details
-
northeast
该地理范围东北坐标 -
southwest
该地理范围西南坐标 -
CREATOR
-
-
Constructor Details
-
LatLngBounds
protected LatLngBounds(android.os.Parcel in)
-
-
Method Details
-
contains
判断该地理范围是否包含一个地理位置- Parameters:
point- 被判断的地理位置- Returns:
- 该地理范围是否包含一个地理位置
-
setCenter
Deprecated.V8.1及之后废弃设置该地理范围的中心地理坐标- Parameters:
_center- 该地理范围的中心地理坐标
-
getCenter
获取该地理范围的中心地理坐标- Returns:
- 该地理范围的中心地理坐标
-
complementBounds
返回该地理范围的互补地理范围- Returns:
- 互补地理范围
-
describeContents
public int describeContents()- Specified by:
describeContentsin interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags) - Specified by:
writeToParcelin interfaceandroid.os.Parcelable
-
toString
-