mapbox / mapbox/mapbox-gl-js

Access 3D buildings from Mapbox Light-v10 in custom style

Open
#11,908 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

**mapbox-gl-js version**: 2.8.2

### Question
Based on your examples it should be easy to show 3D buildings on Mapbox maps.
On your examples page the data comes from the source `composite` wich (presumably?) comes from your style `mapbox://styles/mapbox/light-v10`.
Is it possible to access these 3D buildings on a custom style.json? (Not created with [Mapbox Studio](https://docs.mapbox.com/help/tutorials/add-3d-buildings-studio/))

Mentioning this in your example would be great! Thanks.

### Links to related documentation
- [Display buildings in 3D](https://docs.mapbox.com/mapbox-gl-js/example/3d-buildings/)

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 with the linked “Display buildings in 3D” example and its use of the composite source and light-v10 style. Check whether the documentation explains using the 3D-building data with a custom style.json. Done means the example or related documentation clearly answers that question and identifies the required source or configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
documentation, web-dev
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.