'How to combine heatmaps in open layers?

I thought that Heatmap.source accepts array of sources but seems like it doesn't.

I tried creating 2 heatmap layers and displaying them on map but it creates this strange transition between them.

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source