SimpleClusterOptions | iOS SDK | 2GIS Documentation
iOS SDK

SimpleClusterOptions

Parameters of the cluster marker simple marker objects.

public init(
    icon: Image?,
    iconMapDirection: MapDirection? = nil,
    anchor: Anchor = Anchor(x: 0.5, y: 0.5),
    text: String? = nil,
    textStyle: TextStyle? = nil,
    iconOpacity: Opacity = Opacity(value: 1),
    iconWidth: LogicalPixel = LogicalPixel(value: 0),
    userData: Any = (),
    zIndex: ZIndex = ZIndex(value: 0),
    animatedAppearance: Bool = true,
    iconAnimationMode: AnimationMode = AnimationMode.normal
)
Parameters
icon
iconMapDirection
anchor
text
textStyle
iconOpacity
iconWidth
zIndex
animatedAppearance
iconAnimationMode
Properties

Target width used for scaling.

Any

Object drawing level.

Whether to animate the appearance.

Animation mode.