'Mapbox heatmap for temperature

Is it possible to use Heatmap to display temperature? I have values that goes from -50 to 50 over a area. https://docs.mapbox.com/help/tutorials/make-a-heatmap-with-mapbox-gl-js/ Mapbox displays in there documentation that this is possible for temperature. However I dont really see how? If anyone have done this please share the layer so I can see and understand



Sources

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

Source: Stack Overflow

Solution Source