Here is how you create Heatmap layer in Google Maps Api:
var data = [
{location: new google.maps.LatLng(59.4072, 24.7053),weight:0.8},
{location: new google.maps.LatLng(59.4372, 24.7473),weight: 1},
{location: new google.maps.LatLng(59.4372, 24.7493),weight:0.8},
{location: new google.maps.LatLng(59.483428, 24.841709),weight: 0.6},
{location: new google.maps.LatLng(59.483256, 24.846666),weight: 0.2},
{location: new google.maps.LatLng(59.409425, 27.278345),weight: 0.3}
];
heatmap = new google.maps.visualization.HeatmapLayer({
data: data,
radius: 10
});
As you can see, you have to specify radius in Heatmap config.
But how can I specify different radius for a single source (point) on the Heatmap?
radius
to be in the heatmap config – Thief