mapbox / mapbox/mapbox-gl-js

Zooming out makes models disappear, is there a way to disable this?

Open
#13,431 2 comments 3 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

**mapbox-gl-js version**: 3.10.0
**Browser**: Chrome

### Question
I have lots of geojson model features close together in a map. When I zoom out some of the models disappear, I assume this is some sort of culling which is happening to help improve performance. However if I didn't want this to happen or change what zoom levels this happens it is there a way to do this?

Example - https://jsbin.com/suhocesugo/edit?html,output
Can you see as you zoom out of the map that the models seem to disappear.

![Image](https://github.com/user-attachments/assets/d7217d07-fa90-4fad-b7d1-f193731422e7)
![Image](https://github.com/user-attachments/assets/e0b42c4e-aace-44d3-89d8-b69e6daa89cd)

### Links to related documentation

I have attempted to change the [model-ambient-occlusion-intensity](https://docs.mapbox.com/style-spec/reference/layers/#paint-model-model-ambient-occlusion-intensity) and [model-cutoff-fade-range](https://docs.mapbox.com/style-spec/reference/layers/#paint-model-model-cutoff-fade-range), however I don't think these are the right paint properties to change?

I understand this might be a limitation and can't be changed!

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 JSBin reproduction and the linked model-ambient-occlusion-intensity and model-cutoff-fade-range documentation. Determine whether the zoom-dependent disappearance is expected culling and whether a supported setting changes it; done means documenting the available behavior or identifying a concrete change.

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.