google.maps.visualization.HeatmapLayer class
A layer that provides a client-side rendered heatmap, depicting the intensity of data at geographical points.
This class extends MVCObject.
visualization
Constructor
HeatmapLayer([opts])
Parameters:
- opts: HeatmapLayerOptions optional
Creates a new instance of HeatmapLayer.
Methods
getData()
Parameters: None
Return Value: MVCArray<LatLng|WeightedLocation>
Returns the data points currently displayed by this heatmap.
getMap()
Parameters: None
Return Value: Map
setData(data)
Parameters:
- data: MVCArray<LatLng|WeightedLocation>|Array<LatLng|WeightedLocation>
Return Value: None
Sets the data points to be displayed by this heatmap.
setMap(map)
Parameters:
- map: Map
Return Value: None
Renders the heatmap on the specified map. If map is set to null, the heatmap will be removed.
setOptions(options)
Parameters:
- options: HeatmapLayerOptions
Return Value: None