setWeightedData

Changes the dataset the heatmap is portraying. Weighted. User should clear overlay's tile cache (using clearTileCache()) after calling this.

Parameters

data

Data set of points to use in the heatmap, as LatLngs. Note: Editing data without calling setWeightedData again will not update the data displayed on the map, but will impact calculation of max intensity values, as the collection you pass in is stored. Outside of changing the data, max intensity values are calculated only upon changing the radius.