GMTCMarkerStyleOptions 类参考

GMTCMarkerStyleOptions 类参考

概览

用于存放客户端应用的自定义标记属性的数据对象。

继承 GMTCImmutableData

GMTCMutableMarkerStyleOptions 继承。

公共成员函数

(instancetype)- init
 

属性

CGPointgroundAnchor
 标记的地面锚点。
BOOL isVisible
 用于确定标记的可见性的布尔值。
UIView * iconView
 要渲染的标记视图。
UIImage * 图标
 为标记显示的图标。
int32_tzIndex
 Z-index 指定此标记的叠放顺序。
BOOL isFlat
 标记是平贴着地图还是广告牌朝向镜头。

成员函数文档

-(实例类型)init

使用以下默认值初始化对象:`groundAnchor:{0.5f, 0.5f}`、`isVisible:YES`、`iconView:nil`、`icon:nil`、`zIndex:0`、`isFlat:NO`。


属性说明

- (CGPoint) groundAnchor [read, assign]

标记的地面锚点。

默认值为 {0.5f, 0.5f}

GMTCMutableMarkerStyleOptions 中实现。

- (BOOL) isVisible [read, assign]

用于确定标记的可见性的布尔值。

默认值为 YES。

GMTCMutableMarkerStyleOptions 中实现。

- (UIView*) iconView [read, assign]

要渲染的标记视图。

如果保留 nil,则改为回退到图标属性。

GMTCMutableMarkerStyleOptions 中实现。

- (UIImage*) 图标 [read, assign]

为标记显示的图标。

GMTCMutableMarkerStyleOptions 中实现。

- (int32_t) zIndex [read, assign]

Z-index 指定此标记的叠放顺序。

默认值为 0。

GMTCMutableMarkerStyleOptions 中实现。

- (BOOL) isFlat [read, assign]

标记是平贴着地图还是广告牌朝向镜头。

默认值为 NO。

GMTCMutableMarkerStyleOptions 中实现。