Closed AndrewWrightNZ closed 2 months ago
Hi,
Can you try to comment out everything that has to do with the map.controller including: map.controller.clear() map.controller.append(new PanController(map.camera, map.domContainer, map));
I put that code in to show how to override the default controls but it's not necessary.
If you still have the issue it might be due to the Next.js environment.
Thanks for your reply.
I've recreated this in a Vite app and it does not have the same error, so looks to be something with NextJS. I'm happy to use this in the Vite app to get around this so this can be closed.
If i find any details on why this is happening in NextJS i can add them in future if someone else runs into this.
Thank you again!
Alright great, I usually stick to vanilla J's but I'm starting to make some samples with react etc.. will try to fix with Next.js, thanks for the feedback
Hi Emeric
Thank you for creating this great library! I'm looking to create a map with shadows similar to your Sunny demo
I'm able to render the map to the page however the controls seem to be throwing this error:
Uncaught ReferenceError: eventName is not defined
The version I'm using is:
"@jdultra/ultra-globe": "^4.3.7",
Here is the complete component file I'm using to render the map in NextJS.
Could you please help me to understand if there is something I'm not setting up correctly or if this may be an issue? Thank you in advance!
Screenshots: