ODINv2 icon indicating copy to clipboard operation
ODINv2 copied to clipboard

enable mapbox-rgb encoded terrain layers

Open ThomasHalwax opened this issue 2 years ago • 3 comments

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.

ThomasHalwax avatar Dec 11 '23 11:12 ThomasHalwax

A XYZ tile-service can be terrain-enabled:

image

ThomasHalwax avatar Dec 11 '23 11:12 ThomasHalwax

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:

image

ThomasHalwax avatar Dec 11 '23 11:12 ThomasHalwax

For now we only show the elevation at the position of the mouse pointer: image

ThomasHalwax avatar Dec 11 '23 11:12 ThomasHalwax