After creating heatmapLayers, I've noticed a strange issue where adding and removing them affects the background color of the entire map component, even in areas with no data points nearby. The extent of this background change is determined by the alpha value in the rgba settings.
Is there a way to add heatmap layers without altering the appearance of areas on the map that do not contain any data points?
heatmap = new google.maps.visualization.HeatmapLayer({
map: map, data: data, radius: radius, dissipating: dissipating, opacity: opacity, maxIntensity: intensity,
gradient: [
'rgba(255, 255, 0, 0.2)',
'rgba(255, 255, 0, 0.4)',
'rgba(255, 255, 0, 0.6)',
'rgba(255, 255, 0, 0.8)',
'rgba(255, 255, 0, 1.0)']