FlatLabelAppearance
public struct FlatLabelAppearance : Codable
FlatLabelAppearance
holds the appearance properties of flat labels to be set when labeling polygons
-
Declaration
Swift
public var height: Double?
-
The amount of space to leave before starting the text (@default 5)
Declaration
Swift
public var margin: Double?
-
Text Color
Declaration
Swift
public var color: String?
-
How big to make the font. Defaults to 12 (@default 12)
Declaration
Swift
public var fontSize: Double?
-
The minimum percentage we can shrink the label to if it won’t fit within the bounds at 100%. If it doesn’t fit at that level, it won’t be created. (@default 0.25)
Declaration
Swift
public var scaleMin: Double?
-
How much to decrement the scale each time it doesn’t fit, so we don’t end up with too many different font sizes on screen at once. If * you are only labeling a few Polygons rather than everything,you can set this and and scaleMin to 0.1 to fit everything except really long names perfectly.(@default 0.25)
Declaration
Swift
public var scaleStep: Double?
-
Declaration
Swift
public init( height: Double? = nil, margin: Double? = nil, color: String? = nil, fontSize: Double? = nil, scaleMin: Double? = nil, scaleStep: Double? = nil )