mapbox / mapbox/mapbox-gl-js

Are there any plans to support 3D center points with height in the 3D map?

Open
#13,038 0 comments 1 reaction 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

Hello, do you have any plans to enable support for 3D center points in the map? For example, setting the center of the map as center: [lng, lat, height], supporting height. It would be great if the camera's viewpoint with height could be maintained when rotating or zooming the map.

## example
```
var map = window.map = new mapboxgl.Map({
center: [-122.4194, 37.7749, height: number],
});
```

The scenario is: For example, there is a model on top of a building, 100 meters above the ground. I would like to rotate and zoom the map around this model.

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

No files, tests, or entry points are named. Start by tracing the map center and camera APIs and how 3D viewpoints are handled. Done would mean accepting a center with longitude, latitude, and height, then preserving that elevated viewpoint while rotating or zooming.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, 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.