'Openlayers DEM Cloud Optimized GeoTIFF (COG)

I am currently looking for a solution to load a Digital Elevation Model as Cloud Optimized GeoTIFF (COG) into Openlayers and do the color rendering of the elevation values in the code. So the COG should keep the real elevation values and NOT have them as RGB values (https://openlayers.org/en/main/examples/sea-level.html)...

Thank you very much I hope it is understandable what I have in mind ...



Sources

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

Source: Stack Overflow

Solution Source