立得地图iOS SDK 地图&搜索服务参考手册 V1.7.0
类方法 | 所有成员列表
LMKPolygon类 参考

此类用于定义一个由多个点组成的闭合多边形, 点与点之间按顺序尾部相连, 第一个点与最后一个点相连, 通常LMKPolygon是LMKPolygonView的model 更多...

#import <LMKPolygon.h>

类 LMKPolygon 继承关系图:
LMKMultiPoint <LMKOverlay> LMKShape <LMKAnnotation> <LMKAnnotation>

类方法

(instancetype)  + polygonWithCoordinates:count:
  根据经纬度坐标数据生成闭合多边形 更多...
 

额外继承的成员函数

- 构造函数 继承自 LMKMultiPoint
(void)  - getCoordinates:range:
  将内部的坐标点数据转化为经纬度坐标并拷贝到coords内存中 更多...
 
(id)  - initWithCoordinates:count:
  初始化坐标和坐标点数 更多...
 
- 构造函数 继承自 LMKShape
(void)  - buildDataWithType:
  构建数据 更多...
 
- 构造函数 继承自 <LMKAnnotation>
(NSString *)  - title
  获取annotation标题 更多...
 
(NSString *)  - subtitle
  获取annotation副标题 更多...
 
(void)  - setCoordinate:
  设置标注的坐标,在拖拽时会被调用. 更多...
 
- Protected 属性 继承自 LMKMultiPoint
package LMKMapPoint _points
 
CLLocationCoordinate2D *  _coords
 
NSUInteger  _pointCount
 
LMKMapRect  _boundingRect
 
- Protected 属性 继承自 LMKShape
NSString *  _title
 
NSString *  _subtitle
 
- 属性 继承自 LMKMultiPoint
LMKMapPoint points
  坐标点数组 更多...
 
CLLocationCoordinate2D *  coords
 
NSUInteger  pointCount
  坐标点的个数 更多...
 
- 属性 继承自 LMKShape
NSString *  title
  标题 更多...
 
NSString *  subtitle
  副标题 更多...
 
NSUInteger  projection_type
  投影类型 更多...
 
- 属性 继承自 <LMKAnnotation>
CLLocationCoordinate2D  coordinate
  标注view中心坐标 更多...
 
- 属性 继承自 <LMKOverlay>
CLLocationCoordinate2D  coordinate
  返回区域中心坐标. 更多...
 
LMKMapRect  boundingMapRect
  区域外接矩形 更多...
 

详细描述

此类用于定义一个由多个点组成的闭合多边形, 点与点之间按顺序尾部相连, 第一个点与最后一个点相连, 通常LMKPolygon是LMKPolygonView的model

函数文档

+ (instancetype) polygonWithCoordinates: (CLLocationCoordinate2D *)  coords
count: (NSUInteger)  count 

根据经纬度坐标数据生成闭合多边形

参数
coords 经纬度坐标点数据,coords对应的内存会拷贝,调用者负责该内存的释放
count 经纬度坐标点数组个数
返回
新生成的多边形

该类的文档由以下文件生成: