Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable mapbox-rgb encoded terrain layers #41

Open
wants to merge 84 commits into
base: main
Choose a base branch
from
Open

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.

2 participants