Paint

public struct Paint : Codable

Undocumented

  • Undocumented

    Declaration

    Swift

    public init()
  • Defines the color of each pixel based on its density value in a heatmap. Should be an expression that uses ["heatmap-density"] as input.

    Declaration

    Swift

    public var heatmapColor: Value<ColorRepresentable>?
  • Similar to heatmap-weight but controls the intensity of the heatmap globally. Primarily used for adjusting the heatmap based on zoom level.

    Declaration

    Swift

    public var heatmapIntensity: Value<Double>?
  • Transition options for heatmapIntensity.

    Declaration

    Swift

    public var heatmapIntensityTransition: StyleTransition?
  • The global opacity at which the heatmap layer will be drawn.

    Declaration

    Swift

    public var heatmapOpacity: Value<Double>?
  • Transition options for heatmapOpacity.

    Declaration

    Swift

    public var heatmapOpacityTransition: StyleTransition?
  • Radius of influence of one heatmap point in pixels. Increasing the value makes the heatmap smoother, but less detailed.

    Declaration

    Swift

    public var heatmapRadius: Value<Double>?
  • Transition options for heatmapRadius.

    Declaration

    Swift

    public var heatmapRadiusTransition: StyleTransition?
  • A measure of how much an individual point contributes to the heatmap. A value of 10 would be equivalent to having 10 points of weight 1 in the same spot. Especially useful when combined with clustering.

    Declaration

    Swift

    public var heatmapWeight: Value<Double>?