HeatmapLayer

public struct HeatmapLayer : Layer

A heatmap.

  • id

    Unique layer name

    Declaration

    Swift

    public var id: String
  • Rendering type of this layer.

    Declaration

    Swift

    public let type: LayerType
  • An expression specifying conditions on source features. Only features that match the filter are displayed.

    Declaration

    Swift

    public var filter: Expression?
  • Name of a source description to be used for this layer. Required for all layer types except BackgroundLayer, SkyLayer, and LocationIndicatorLayer.

    Declaration

    Swift

    public var source: String?
  • Layer to use from a vector tile source.

    Required for vector tile sources. Prohibited for all other source types, including GeoJSON sources.

    Declaration

    Swift

    public var sourceLayer: String?
  • The slot this layer is assigned to. If specified, and a slot with that name exists, it will be placed at that position in the layer order.

    Declaration

    Swift

    public var slot: String?
  • The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden.

    Declaration

    Swift

    public var minZoom: Double?
  • The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden.

    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<StyleColor>?
  • 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. queryRenderedFeatures on heatmap layers will return points within this radius.

    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, source: String)
  • Declaration

    Swift

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

    Swift

    public init(from decoder: Decoder) throws