Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
joshnice opened this issue Mar 12, 2025 · 1 comment
Open

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

joshnice opened this issue Mar 12, 2025 · 1 comment

Comments

@joshnice
Copy link

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
Image

Links to related documentation

I have attempted to change the model-ambient-occlusion-intensity and 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!

@JoshuaJMoore
Copy link

I think this is due to the density reduction algorithm that map-box have introduced which is impacted by the zoom level. I have created a PR here to add a layer layout property "model-allow-density-reduction" which would allow usecases where we dont want the density reducing when zooming out.
#13433

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants