ol-mapbox-style icon indicating copy to clipboard operation
ol-mapbox-style copied to clipboard

Hillshading - Terrain elevation encoding

Open utagawal opened this issue 2 years ago • 1 comments

In the hillshading function, only the Mapbox encoding is available to decode elevation with the formula : pixel[0] * 256 * 256 + pixel[1] * 256 + pixel[2]) * 0.1 - 10000

Terrarium / Mapzen is also possible as Mapbox elevation encoding in a Mapbox style. Decoding formula is described here.

@V-Roger can you please help ?

utagawal avatar Dec 29 '22 18:12 utagawal