Heatmap Paint
constructor(color: StyleValue<Color> = StyleValue.Expression(
Expression.interpolate(
listOf("heatmap-density"),
listOf(
0.0 to "rgba(0, 0, 0, 0)",
0.2 to "rgba(0, 0, 255, 0.2)",
0.45 to "rgba(0, 255, 0, 0.5)",
0.85 to "rgba(255, 255, 0, 1)",
1.0 to "rgba(255, 0, 0, 1)"
)
)
), intensity: StyleValue<Double> = StyleValue.Constant(2.0), radius: StyleValue<Double> = StyleValue.Constant(20.0), weight: StyleValue<Double> = StyleValue.Constant(2.0))