MapMeasureDependentRenderSize
public struct MapMeasureDependentRenderSize : Hashable
Represents a render size, described as map measure dependent values.
-
The unit used for the key in
MapMeasureDependentRenderSize.sizes.Declaration
Swift
public let measureKind: MapMeasure.Kind -
The unit used for the value in
MapMeasureDependentRenderSize.sizes.Declaration
Swift
public let sizeUnit: RenderSize.Unit -
The dictionary describing the size (value) per map measure (key).
Units of keys and values are defined in
MapMeasureDependentRenderSize.measureKindandMapMeasureDependentRenderSize.sizeUnit.sizeswith a single entry indicates using a fixed size value across all map measures.Declaration
Swift
public let sizes: [Double : Double] -
Constructs a
MapMeasureDependentRenderSizefrom given parameters.Supplying
sizesmap with a single entry indicates using a fixed size value across all map measures.Throws
MapMeasureDependentRenderSize.InstantiationErrorInstantiation error ifsizesmap is empty or contains negative keys or values.Declaration
Swift
public init(measureKind: MapMeasure.Kind, sizeUnit: RenderSize.Unit, sizes: [Double : Double]) throws -
Constructs a
MapMeasureDependentRenderSizefrom single size value which is constant across all map measures.The given
sizevalue is stored inMapMeasureDependentRenderSize.sizesmap at key 0 andMapMeasureDependentRenderSize.measureKindis set toMapMeasure.Kind.zoomLevel.Declaration
Swift
public init(sizeUnit: RenderSize.Unit, size: Double) throwsParameters
sizeUnitThe unit used for the value in
size.sizeThe size independent of map measure. Must not be negative.
-
Describes a reason for failing to create a
See moreMapMeasureDependentRenderSize.Declaration
Swift
public enum InstantiationErrorCode : UInt32, CaseIterable, Codableextension MapMeasureDependentRenderSize.InstantiationErrorCode : Error -
Thrown when a problem occurs while trying to create
MapMeasureDependentRenderSize.Declaration
Swift
public typealias InstantiationError = InstantiationErrorCode