-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Model Disappears When Rotating or Zooming the Map #13384
Comments
@jtorresfabra If you mean a single model (one GLB) then yes. Here's a JSBin: |
Hey @geografa, Thanks for the example. I think your case is a different one and not related with the issue above. In your case the model is displaced from the center of the local axis. Then when you place the object the point used is the one referencing the center, so when this goes out of the screen the model is culled. I would recommend to set the center of the model to the center of the local axis to avoid your model getting culled. |
@jtorresfabra yes! Thank you. That makes sense. Are there thresholds for how large or small the models may be or a minimum distance from the center axis? |
@geografa The idea would be that the center point stays in the same tile as the maximum zoom tileID you are allowing. |
mapbox-gl-js version: v3.9.1
Google Chrome: 131.0.6778.205
When I rotate or zoom the map, the model disappears. How can I set it so that the model remains visible on the map and is not affected by map rotation or zooming?
`
<title>model layer</title>The text was updated successfully, but these errors were encountered: