here how 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 can see, have specify radius in heatmap config.
but how can specify different radius single source (point) on heatmap?
Comments
Post a Comment