Heatmap Layer Descriptor
data class HeatmapLayerDescriptor(var id: String, var source: String, var sourceLayer: String? = null, var paint: HeatmapLayerPaint = HeatmapLayerPaint(
heatmap = HeatmapPaint()
), var filter: Expression? = null) : VectorLayerDescriptor<HeatmapLayerPaint> , LayerEventEmitter
Descriptor for a Mapbox heatmap layer: point density visualized as a color ramp, backed by vector or GeoJSON point data.
Add the source first, then com.xweather.mapsgl.map.MapController.addLayer. paint (HeatmapLayerPaint) maps to Mapbox heatmap-color, heatmap-weight, heatmap-intensity, heatmap-radius, and heatmap-opacity.
Use sourceLayer for MVT point layers; null for GeoJSON when the source is a single feature collection of points.
See also
Constructors
Link copied to clipboard
constructor(id: String, source: String, sourceLayer: String? = null, paint: HeatmapLayerPaint = HeatmapLayerPaint(
heatmap = HeatmapPaint()
), filter: Expression? = null)