FMKPolygonMarker Class Reference
| Inherits from | FMKNode : NSObject |
|---|---|
| Declared in | FMKPolygonMarker.h |
offsetMode
标注物偏移模式
@property (nonatomic, assign) FMKPolygonMarkerOffsetMode offsetModeDeclared In
FMKPolygonMarker.h
type
标注物type
@property (nonatomic, readonly) FMKPolygonMarkerType typeDeclared In
FMKPolygonMarker.h
offset
偏移量 只有在FMKPolygonMarker_USERDEFINE模式时有效
@property (nonatomic, assign) CGFloat offsetDeclared In
FMKPolygonMarker.h
lineWidth
边框线宽 负值为内边框
@property (nonatomic, assign) CGFloat lineWidthDeclared In
FMKPolygonMarker.h
mapPoints
覆盖面标注物的顶点地图坐标集合
@property (nonatomic, strong) NSArray *mapPointsDeclared In
FMKPolygonMarker.h
centerPosition
中心位置 矩形和圆形有效
@property (nonatomic, readonly) FMKMapPoint centerPositionDeclared In
FMKPolygonMarker.h
– initWithColor:withCoord:
初始化覆盖面标注物
- (instancetype)initWithColor:(UIColor *)color withCoord:(NSArray *)mapPointsParameters
color |
覆盖面标注物的颜色 |
|---|---|
mapPoints |
覆盖面标注物的顶点地图坐标集合 至少需要三个地图顶点坐标FMKMapPoint |
Return Value
覆盖面标注物
Declared In
FMKPolygonMarker.h
– initWithColor:width:height:centerPosition:
初始化矩形覆盖物
- (instancetype)initWithColor:(UIColor *)color width:(CGFloat)width height:(CGFloat)height centerPosition:(FMKMapPoint)positionParameters
color |
矩形填充色 |
|---|---|
width |
矩形宽 |
height |
矩形高 |
position |
中心位置 |
Return Value
矩形标注物
Declared In
FMKPolygonMarker.h
– initWithColor:radius:centerPosition:segments:
初始化圆形
- (instancetype)initWithColor:(UIColor *)color radius:(CGFloat)radius centerPosition:(FMKMapPoint)position segments:(NSInteger)segmentsParameters
color |
填充颜色 |
|---|---|
radius |
半径 |
position |
圆心坐标 |
segments |
分段数 该参数影响逼近圆的线段边数 |
Return Value
圆标注物
Declared In
FMKPolygonMarker.h
– mapPointIsContained:
判断一个地图坐标是否在覆盖面内
- (BOOL)mapPointIsContained:(FMKMapPoint)mapPointParameters
mapPoint |
地图坐标 |
|---|
Return Value
判断结果
Declared In
FMKPolygonMarker.h