Closed m6hdix closed 3 months ago
help sir
I would appreciate it if you could respond, I'm even willing to donate
Can you put this on a sandbox to be able to replicate? Here is a starting one you can fork https://codesandbox.io/p/sandbox/react-three-map-gettings-started-dhw34w
Hello RodrigoHamuy,
Thank you for reviewing the issue I raised. I have created a sandbox environment to demonstrate the problem. Please note that this is just for testing purposes and not intended for production.
Here is the link to the sandbox: https://codesandbox.io/p/live/176d120c-fd63-4726-b612-7f48d5e13b30
Please make sure to install and enable the CORS error extension, and for the environments to load correctly, zoom in to 15x.
I appreciate your time and look forward to your feedback.
Best regards example video:
https://github.com/user-attachments/assets/40836d13-3be6-46b9-b274-40b3b36972ef
Do you have a minimum example without having to install custom extensions?
That sandbox is still a bit complicated for debugging.
But I can see you are creating a new <Canvas>
per model. Instead, I would recommend to use <NearCoordinates>
instead.
I am experiencing a bug when rendering multiple 3D models using react-three-map and react-three-fiber. Despite having different URLs for the models, the same model is rendered across all canvases. This issue occurs when trying to load multiple models that are close to each other on the map.
Use the provided MapPolygons component. Ensure there are at least three models with distinct URLs that are close to each other geographically. Observe that the same model is rendered in all canvases, even though their URLs are different. Expected Behavior: Each canvas should render the 3D model specified by its unique URL.
Actual Behavior: All canvases render the same model, ignoring the distinct URLs.
Relevant Code:
# The models have different URLs and unique keys. This issue is impacting the accurate visualization of 3D models on the map. Environment: