google-maps-documentation

HeatmapLayer class

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.

Library

visualization

Constructor
HeatmapLayer
HeatmapLayer([opts])
Parameters: 
Creates a new instance of HeatmapLayer.
Methods
getData
getData()
Parameters:  None
Returns the data points currently displayed by this heatmap.
getMap
getMap()
Parameters:  None
Return Value:  Map
setData
setData(data)
Parameters: 
Return Value:  None
Sets the data points to be displayed by this heatmap.
setMap
setMap(map)
Parameters: 
Return Value:  None
Renders the heatmap on the specified map. If map is set to null, the heatmap will be removed.
setOptions
setOptions(options)
Parameters: 
Return Value:  None