Skip to content

Conversation

@ThomasHalwax
Copy link
Member

@ThomasHalwax ThomasHalwax commented Dec 11, 2023

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
Copy link
Member Author

A XYZ tile-service can be terrain-enabled:

image

@ThomasHalwax
Copy link
Member Author

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
Copy link
Member Author

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

@ThomasHalwax ThomasHalwax marked this pull request as ready for review December 12, 2023 11:53
@ThomasHalwax ThomasHalwax added this to the v2.9 milestone Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants