mapbox / mapbox/mapbox-gl-js

Switch off camera height change with terrain

Open
#11,300 7 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

## Motivation

I am writing geospatial app with deck.gl and react-map-gl. The problem when in 3D mode ( mapbox terrain feature ) is that mapbox changes camera height depending on terrain height. Because deck.gl doesn't know about this camera height change, objects rendered by deck.gl are not aligned with terrain despite having correct z coordinate (height). This is even more obvious while camera is moving ( rotating, panning, changing pitch) it look like deck.gl object are moving in space.
Is there a way to switch off this camera behaviour.

## Design

I would like to to be able to configure mapbox-gl camera not to change height with terrain bellow it.

### Mock-Up

### Concepts

### Implementation

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

The issue names no source files, entry points, or tests. Start by tracing terrain-related camera handling in Mapbox GL JS and the interaction described with deck.gl and react-map-gl; done means providing a documented configuration that prevents terrain from changing camera height while preserving expected camera behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react, typescript
Domain
computer-graphics, frontend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.