FMKPolygonMarker Class Reference

Inherits from FMKNode : NSObject
Declared in FMKPolygonMarker.h

Overview

自定义面标注物

  offsetMode

标注物偏移模式

@property (nonatomic, assign) FMKPolygonMarkerOffsetMode offsetMode

Declared In

FMKPolygonMarker.h

  type

标注物type

@property (nonatomic, readonly) FMKPolygonMarkerType type

Declared In

FMKPolygonMarker.h

  offset

偏移量 只有在FMKPolygonMarker_USERDEFINE模式时有效

@property (nonatomic, assign) CGFloat offset

Declared In

FMKPolygonMarker.h

  lineWidth

边框线宽 负值为内边框

@property (nonatomic, assign) CGFloat lineWidth

Declared In

FMKPolygonMarker.h

  color

覆盖面标注物颜色

@property (nonatomic, strong) UIColor *color

Declared In

FMKPolygonMarker.h

  lineColor

边框颜色

@property (nonatomic, strong) UIColor *lineColor

Declared In

FMKPolygonMarker.h

  mapPoints

覆盖面标注物的顶点地图坐标集合

@property (nonatomic, strong) NSArray *mapPoints

Declared In

FMKPolygonMarker.h

  alpha

覆盖面标注物的透明度

@property (nonatomic, assign) CGFloat alpha

Declared In

FMKPolygonMarker.h

  centerPosition

中心位置 矩形和圆形有效

@property (nonatomic, readonly) FMKMapPoint centerPosition

Declared In

FMKPolygonMarker.h

  FID

FID 元素唯一标识

@property (nonatomic, readonly) NSString *FID

Declared In

FMKPolygonMarker.h

  name

name

@property (nonatomic, readonly) NSString *name

Declared In

FMKPolygonMarker.h

  ename

ename

@property (nonatomic, readonly) NSString *ename

Declared In

FMKPolygonMarker.h

  height

height

@property (nonatomic, readonly) CGFloat height

Declared In

FMKPolygonMarker.h

  width

矩形宽

@property (nonatomic, readonly) CGFloat width

Declared In

FMKPolygonMarker.h

  radius

圆半径

@property (nonatomic, readonly) CGFloat radius

Declared In

FMKPolygonMarker.h

  segments

圆分割数

@property (nonatomic, readonly) NSInteger segments

Declared In

FMKPolygonMarker.h

– initWithColor:withCoord:

初始化覆盖面标注物

- (instancetype)initWithColor:(UIColor *)color withCoord:(NSArray *)mapPoints

Parameters

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)position

Parameters

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)segments

Parameters

color

填充颜色

radius

半径

position

圆心坐标

segments

分段数 该参数影响逼近圆的线段边数

Return Value

圆标注物

Declared In

FMKPolygonMarker.h

– mapPointIsContained:

判断一个地图坐标是否在覆盖面内

- (BOOL)mapPointIsContained:(FMKMapPoint)mapPoint

Parameters

mapPoint

地图坐标

Return Value

判断结果

Declared In

FMKPolygonMarker.h