mapbox / mapbox/mapbox-gl-js

Support for multiple terrain sources

Open
#10,198 3 comments 12 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

## Motivation

We have clients which do LIDAR scans & capture drone imagery of earthworks sites regularly (at least weekly). They will benefit greatly from being able to view 3d maps of terrain models derived from their LIDAR scans with the drone image draped over it.

Currently is appears that only a single terrain source can be specified, which means I either need to use our custom terrain model which is very limited in size, the mapbox whole earth terrain model or try and proxy the two together in order to serve them both under a single endpoint.

## Design Alternatives

Some sort of proxy setup should work, but we currently do not support any infrastructure for serving tilesets and would prefer to allow mapbox to provide this service for us.

## Design

it would be ideal if multiple terrain sources could be specified, which allows us to provide the mapbox DEM tileset as the 'base' terrain data set, then have our custom terrain models apply when available.

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 reviewing how the current single terrain source is configured and consumed, then examine the terrain tile-loading path. Compare the requested base Mapbox DEM source and custom terrain models, including how availability and fallback should work. Done means multiple sources can be specified and custom terrain overrides the base data where available.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.