Skip to content
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

Zoom levels around 13.88 and below, my R3F model starts disappearing or going below the map #128

Open
newguy123-creator opened this issue Nov 12, 2024 · 3 comments

Comments

@newguy123-creator
Copy link

  • three version: 0.169.0
  • @react-three/fiber version: 8.17.10
  • react-three-map version: 0.8.2
  • node version: v20.11.1
  • npm (or yarn) version: 10.2.4

Problem description:

When I zoom out from the map, my R3F model is a LARGE architectural site. However when the zoom hits around 13.88 or smaller, ie 13, 12 or 10 etc, my model seems to go below the map and disappear. Is this a setting that I can set somewhere???

Relevant code:

No code to show, just my description above

@newguy123-creator
Copy link
Author

UPDATE:
This seems to only happen when using the mapbox standard style
When I use a custom style, then it seems to work fine as expected.
...but I would like it to work with standard style

@RodrigoHamuy
Copy link
Owner

@newguy123-creator can you provide a minimal reproducible example using code sandbox?

@newguy123-creator
Copy link
Author

@newguy123-creator can you provide a minimal reproducible example using code sandbox?

Hi. As I mentioned in my update, I think this may possibly be something related to the mapbox style. If you use the latest mapbox and use the standard style, they have 3D buildings on there by default, my 3D stuff seems to dissappear at the same zoom as their 3D buildings in the map. The weird thing though if I just use Mapbox Studio and copy the standard style and use this new copied style, then my 3D stuff works fine and is visible on all zoom levels.

To be clear, this happens only on the mapbox standard style, any other style seems to work fine.

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

No branches or pull requests

2 participants