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

Keep getting a warning when clciking on a pin that does a flyto... #131

Open
newguy123-creator opened this issue Nov 18, 2024 · 1 comment

Comments

@newguy123-creator
Copy link

newguy123-creator commented Nov 18, 2024

  • 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:

I have a pin on a UK map (UK map fully visible). When clicking on the pin I flyto the coords of the pin to zoom level 14.81. I get the error as soon as I start fyling and enable my R3F components. I do not recognise any of this so I believe it has nothing to do with my own code:
image

The super weird thing is, I only get this 1 time when the app starts, or i refresh the page and click on the pin. If after I zoom to my coords, then zoom back out to UK full view, click on the pin again, then the warning does not appear.
It only re-appears if I refresh the browser and click on pain again...

Relevant code:

simple handleClick code to flyto coords at specific zoom level and bearing

Suggested solution:

I dont have a suggested solution as I have no idea why the error/warning comes up in the 1st place

@RodrigoHamuy
Copy link
Owner

This looks like a mapbox issue, not something to do with this library? If you think otherwise would you mind providing a codesandbox reproducing the issue (you can start from this template).

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