mapbox / mapbox/mapbox-gl-js

Multidirectional hillshade

Open
#12,445 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature :green_apple:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

## Motivation

Multidirectional hillshade improves terrain visualization. It combines light from different directions to represent an enhanced visualization of the terrain and to improve the appearance of regions with low relief. It improves the balance between the overexposed and shadow areas of the map. The output is suitable to use as a relief backdrop for topographical, soil, hydrological, land cover, or other thematic maps in which the data will be enhanced with topography.

## Design Alternatives

Multiple layers with Single hillshading on different parameters

### Mock-Up

see : [https://iderioja.github.io/doc_lidar_2016_processing_en/dtm_dsm/hillshade/](https://iderioja.github.io/doc_lidar_2016_processing_en/dtm_dsm/hillshade/)

### Concepts

See [https://pro.arcgis.com/en/pro-app/latest/help/analysis/raster-functions/hillshade-function.htm](https://pro.arcgis.com/en/pro-app/latest/help/analysis/raster-functions/hillshade-function.htm)

### Implementation

```
After multiple tests, the following three lighting sources have been selected:

Azimuth | Height | Transparency
-- | -- | --
350º | 70º | 65%
15º | 60º | 50%
270º | 270º | 70%

```

source : [https://iderioja.github.io/doc_lidar_2016_processing_en/dtm_dsm/hillshade/](https://iderioja.github.io/doc_lidar_2016_processing_en/dtm_dsm/hillshade/)

Increase the number of input fields in the hillshading style layer for taking into account multiple Azimuth, Height and Transparency .

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the hillshading style layer and reviewing the linked multidirectional hillshade references and mock-up. The change is complete when the layer supports multiple Azimuth, Height, and Transparency inputs using the three listed lighting sources and produces the intended multidirectional terrain visualization.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
computer-graphics
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.