HeatmapLayer

public struct HeatmapLayer : Layer

A heatmap.

@see The online documentation

  • id

    Declaration

    Swift

    public var id: String
  • Declaration

    Swift

    public var type: LayerType
  • Declaration

    Swift

    public var filter: Expression?
  • Declaration

    Swift

    public var source: String?
  • Declaration

    Swift

    public var sourceLayer: String?
  • Declaration

    Swift

    public var minZoom: Double?
  • Declaration

    Swift

    public var maxZoom: Double?
  • Whether this layer is displayed.

    Declaration

    Swift

    public var visibility: Value<Visibility>?
  • 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>?
  • Undocumented

    Declaration

    Swift

    public init(id: String)
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws
  • Declaration

    Swift

    public init(from decoder: Decoder) throws