I have an ARWindow that is loaded using the demo code. It all seems to work fine, however when I try and run a function defined in the poiselected.js file, I get the following error:
Uncaught Reference Error: World is not defined.
I know I am calling from the right context because I get this:
[INFO] : chromium: [INFO:CONSOLE(1)] "Uncaught ReferenceError: World is not defined", source: (1)
I can confirm that I am calling AFTER the world is loaded. Still get the error " chromium: [INFO:CONSOLE(1)] "Uncaught ReferenceError: World is not defined", source: (1)". Not sure how to troubleshoot this...
could it be possible that the poiselected.js is not finished loading when you are calling the world?
In this case you could use the world is loaded callback: