enable mapbox-rgb encoded terrain layers
In order to display the elevation, calculate line-of-sight, terrain profiles, viewsheds etc. we need to find a way to use digital elevation model (DEM) data. Mapbox developed a way to encode elevation data in RGB tiles. This way the mechanisms to load elevation data is the same as regular basemaps.
This PR enables mapbox-rgb tiles that contain rgb-encoded elevation data.
A XYZ tile-service can be terrain-enabled:
The terrain layers can not be changed regarding opacity or visibility but may be re-arranged in order to provide a more detailed layer on top of a more general DEM layer:
For now we only show the elevation at the position of the mouse pointer: