FMKTextLayer Class Reference

Inherits from FMKLayer : NSObject
Declared in FMKTextLayer.h

Overview

自定义文本图层 创建成功使用FMKMap addLayer方法添加自定义文本标注物图层 获取方式 FMKMap getTextLayerByGroupID:

  groupID

文本图层所在楼层ID

@property (nonatomic, readonly) NSString *groupID

Declared In

FMKTextLayer.h

– initWithGroupID:

初始化文本图层(在同一楼层下可创建多个文本图层)

- (instancetype)initWithGroupID:(NSString *)groupID

Parameters

groupID

文本图层所在楼层

Return Value

文本图层

Declared In

FMKTextLayer.h

– addMarker:

添加文本标注物

- (void)addMarker:(FMKTextMarker *)textMarker

Parameters

textMarker

文本标注物

Declared In

FMKTextLayer.h

– textMarkerWithTag:

通过tag获取文本标注物

- (FMKTextMarker *)textMarkerWithTag:(NSInteger)tag

Parameters

tag

文本标注物的tag,文本标注物的唯一标识

Return Value

对应tag的文本标注物

Declared In

FMKTextLayer.h

– removeMarker:

删除文本标注物

- (void)removeMarker:(FMKTextMarker *)textMarker

Parameters

textMarker

文本标注物

Declared In

FMKTextLayer.h

– removeAll

删除该图层下的所有文本标注物

- (void)removeAll

Declared In

FMKTextLayer.h