ImageStyle Structure Reference
- Last UpdatedJun 10, 2025
- 1 minute read
public struct ImageStyle
This class specifies the visual appearance of a cluster marker.
-
The map image for the cluster marker.
Declaration
Swift
public let image: MapImage
-
The anchor point for the marker image which specifies the position offset relative to the cluster’s position.
Declaration
Swift
public let anchor: Anchor2D
-
Creates a cluster marker image style using a map image with anchor.
The anchor is a way of specifying position offset relative to image’s dimensions on the screen. For example, (0, 0) places the top-left corner of the image at the cluster’s position. (1, 1) would place the bottom-right corner of the image at the cluster’s position.
Parameters
image
The map image for the cluster marker.
anchor
The anchor point for the marker image which specifies the position offset relative to the cluster’s position.
-
Creates a marker cluster image representation with default anchor.
Declaration
Swift
public init(image: MapImage)
Parameters
image
The map image for the cluster marker.