OverlayStyle

public struct OverlayStyle

Style of the overlay - unreachable zone of the range.

Important

This is a Public Preview API. It may be changed or removed at any time.

Lifecycle

  • Initializes the overlay style.

    Declaration

    Swift

    public init(colors: [Double : UIColor], lineStyle: LineStyle)

    Parameters

    colors

    The color of the overlay. In this dictionary, the key is the zoom level and the value is the color for that zoom level. Colors between neighboring zoom levels are linearly interpolated. This parameter must be a non-empty dictionary containing non-negative keys. To set a single value for all zoom levels, include a single entry with a key value in the range [0;22].

    lineStyle

    The style of the overlay boundary line.

Public

  • The color of the overlay. In this dictionary, the key is the zoom level and the value is the color for that zoom level. Colors between neighboring zoom levels are linearly interpolated. This parameter must be a non-empty dictionary containing non-negative keys. To set a single value for all zoom levels, include a single entry with a key value in the range [0;22].

    Declaration

    Swift

    public let colors: [Double : UIColor]
  • The style of the overlay boundary line.

    Declaration

    Swift

    public let lineStyle: LineStyle