FMGLGeometry
概述
地图区域参数
函数
MGLCoordinateSpanMake()
创建经纬度跨度结构体
PARAMETERS
| 参数 | 类型 | 说明 |
|---|---|---|
| latitudeDelta | CLLocationDegrees | 纬度 |
| longitudeDelta | CLLocationDegrees | 经度 |
RETURN VALUE
FMGLCoordinateSpan
MGLCoordinateSpanEqualToCoordinateSpan()
判断两个跨度是否相同
PARAMETERS
| 参数 | 类型 | 说明 |
|---|---|---|
| span1 | FMGLCoordinateSpan | 经纬度跨度 |
| span2 | FMGLCoordinateSpan | 经纬度跨度 |
RETURN VALUE
BOOL
FMGLCoordinateBoundsMake()
创建一个区域结构
PARAMETERS
| 参数 | 类型 | 说明 |
|---|---|---|
| sw | CLLocationCoordinate2D | 西南角地理坐标 |
| ne | CLLocationCoordinate2D | 东北角地理坐标 |
RETURN VALUE
FMGLCoordinateBounds
MGLCoordinateBoundsEqualToCoordinateBounds()
判断两个区域结构是否相同
PARAMETERS
| 参数 | 类型 | 说明 |
|---|---|---|
| bounds1 | FMGLCoordinateBounds | 区域结构 |
| bounds2 | FMGLCoordinateBounds | 区域结构 |
RETURN VALUE
BOOL
MGLCoordinateBoundsEqualToCoordinateBounds()
判断两个区域结构是否相同
PARAMETERS
| 参数 | 类型 | 说明 |
|---|---|---|
| bounds1 | FMGLCoordinateBounds | 区域结构 |
| bounds2 | FMGLCoordinateBounds | 区域结构 |
RETURN VALUE
BOOL
MGLCoordinateInCoordinateBounds()
坐标是否在区域结构内
PARAMETERS
| 参数 | 类型 | 说明 |
|---|---|---|
| coordinate | CLLocationCoordinate2D | 地理坐标 |
| bounds | FMGLCoordinateBounds | 区域结构 |
RETURN VALUE
BOOL
MGLCoordinateBoundsGetCoordinateSpan()
计算一个区域结构的跨度
PARAMETERS
| 参数 | 类型 | 说明 |
|---|---|---|
| bounds | FMGLCoordinateBounds | 区域结构 |
RETURN VALUE
FMGLCoordinateSpan
MGLCoordinateBoundsOffset()
根据区域结构和跨度返回一个新区域结构
PARAMETERS
| 参数 | 类型 | 说明 |
|---|---|---|
| bounds | FMGLCoordinateBounds | 区域结构 |
| offset | FMGLCoordinateSpan | 坐标跨度 |
RETURN VALUE
FMGLCoordinateBounds
MGLCoordinateBoundsIsEmpty()
区域结构是否为空
PARAMETERS
| 参数 | 类型 | 说明 |
|---|---|---|
| bounds | FMGLCoordinateBounds | 区域结构 |
| offset | FMGLCoordinateSpan | 坐标跨度 |
RETURN VALUE
BOOL
MGLStringFromCoordinateBounds()
区域结构字符串
PARAMETERS
| 参数 | 类型 | 说明 |
|---|---|---|
| bounds | FMGLCoordinateBounds | 区域结构 |
RETURN VALUE
NSString
MGLRadiansFromDegrees()
角度转弧度
PARAMETERS
| 参数 | 类型 | 说明 |
|---|---|---|
| degrees | CLLocationDegrees | 角度值 |
RETURN VALUE
CGFloat
MGLDegreesFromRadians()
弧度转角度
PARAMETERS
| 参数 | 类型 | 说明 |
|---|---|---|
| radians | CGFloat | 弧度值 |
RETURN VALUE
CLLocationDegrees