WidthByZoom
public struct WidthByZoom : StyleByZoom
Represents the width 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: Double
Initializes width per zoom values.
Declaration
Swift
public init(valueByZoom: [Double : Double], defaultValue: Double = 0.0)
Parameters
valueByZoom
|
A mapping of zoom levels to widths in point units. |
defaultValue
|
Default value for all of the zoom levels. |
A mapping of zoom levels to widths in point units.
Declaration
Swift
public let valueByZoom: [Double : Double]