ColorByZoom
public struct ColorByZoom : StyleByZoom
Represents the color to use for each zoom level.
Important
This is a Public Preview API. It may be changed or removed at any time.Default value for all of the zoom levels.
Declaration
Swift
public let defaultValue: UIColor
Initializes colors per zoom values.
Declaration
Swift
public init(valueByZoom: [Double : UIColor], defaultValue: UIColor = .clear)
Parameters
valueByZoom
|
A mapping of zoom levels to colors. |
defaultValue
|
Default value for all of the zoom levels. |
A mapping of zoom levels to colors.
Declaration
Swift
public let valueByZoom: [Double : UIColor]