-
Identifier for this annotation
Declaration
Swift
public let id: String
-
The geometry backing this annotation
Declaration
Swift
public var geometry: Geometry { get }
-
The polygon backing this annotation
Declaration
Swift
public var polygon: Polygon
-
Properties associated with the annotation
Declaration
Swift
public var userInfo: [String : Any]?
-
Toggles the annotation’s selection state. If the annotation is deselected, it becomes selected. If the annotation is selected, it becomes deselected.
Declaration
Swift
public var isSelected: Bool
-
Property to determine whether annotation can be manually moved around map
Declaration
Swift
public var isDraggable: Bool
-
Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.
Declaration
Swift
public var fillSortKey: Double? { get set }
-
The color of the filled part of this layer. This color can be specified as
rgba
with an alpha component and the color’s opacity will not affect the opacity of the 1px stroke, if it is used.Declaration
Swift
public var fillColor: StyleColor? { get set }
-
The opacity of the entire fill layer. In contrast to the
fill-color
, this value will also affect the 1px stroke around the fill, if the stroke is used.Declaration
Swift
public var fillOpacity: Double? { get set }
-
The outline color of the fill. Matches the value of
fill-color
if unspecified.Declaration
Swift
public var fillOutlineColor: StyleColor? { get set }
-
Name of image in sprite to use for drawing image fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, …, 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.
Declaration
Swift
public var fillPattern: String? { get set }