LzHeatmapModel
data class LzHeatmapModel(val identifier: String, val points: List<LatLng>, val weights: List<Double>? = null, val intensity: Double = 1.0, val radius: Float = 30.0f, val opacity: Float = 0.7f, val colorStops: List<Pair<Double, String>>? = null)Describes a heatmap overlay to be drawn on the map.
Heatmaps visualize point density using a color gradient from cool (low density) to hot (high density). Each point can optionally carry a weight that influences its contribution to the density calculation.
Matches the iOS SDK’s LZHeatmapModel for cross-platform parity.
Constructors
LzHeatmapModel | constructor(identifier: String , points: List <LatLng>, weights: List <Double >? = null, intensity: Double = 1.0, radius: Float = 30.0f, opacity: Float = 0.7f, colorStops: List <Pair <Double , String >>? = null) |
Types
| Name | Summary |
|---|---|
Companion | object Companion |
Properties
colorStops
val colorStops: List<Pair<Double, String>>? = nullColor ramp defined as a list of (density, hexColor) pairs. Density values range from 0.0 (no density) to 1.0 (max density). Colors are hex strings (e.g. “#FF0000”). Supports “#AARRGGBB” for transparency. When null, a default blue-to-red ramp is used.
identifier
val identifier: StringUnique identifier used to reference this heatmap for removal.
intensity
val intensity: Double = 1.0Overall intensity multiplier for the heatmap density.
opacity
val opacity: Float = 0.7fOverall opacity of the heatmap layer, from 0.0 to 1.0.
points
val points: List<LatLng>List of lat/lng positions for the heatmap data.
radius
val radius: Float = 30.0fBlur radius in density-independent pixels controlling how far heat spreads from each point.
weights
val weights: List<Double>? = nullOptional per-point weights (0.0–1.0). When null, all points have equal weight of 1.0. Must match points length if provided.