getDeckGLMap([
new deck.HexagonLayer({
id: "heatmap",
opacity: 0.5,
data: data,
radius: radius,
elevationRange: [0, radius],
elevationScale: 50,
getColorWeight: (point) => point["price"],
colorAggregation: "MEAN",
getElevationWeight: () => 1,
elevationAggregation: "SUM",
extruded: true,
getPosition: (d) => [d.longitude, d.latitude],
pickable: true,
upperPercentile: 99.9,
lowerPercentile: 100 - 99.9,
})
])