updateData

Refreshes the heatmap with a new collection of weighted data points.

This is an expensive operation. It involves rebuilding the quadtree index and recalculating the bounds and maximum intensity values for the new dataset. This method should be used when the underlying data for the heatmap has changed.

Parameters

data

The new collection of WeightedLatLng points.