I created some POIs and I customized the Marker object using an AR.ActionRange to detect when the user is near a poi.
In the onEnter function I defined functions to draw 3D models and in onExit I will keep this drawn and I will manipulate it in onLocationChangedFn().
So, when I enter in a different ActionRange I load the new model, but when I do it, this error occurs: 'Cannot read property 'root' of null index.html:1', specifically:
Uncaught TypeError: Cannot read property 'root' of null index2.html:1
The thing I think is strange is that when I tap 3d button, ok, the error occurs, but the model is showed (the old model instead of the new that I detected in the new ActionRange).
I know that I did not explained well, so in attachment is the project (only things missing are the 3d models)
W
Wolfgang Damm
said
about 9 years ago
The error you posted is related to the ADE and won't happen on the device. However there might be another error displayed in the desktop browser during debugging or on the device. If so please post that as well. If the posted error is the only one, I suggest ignoring it and test with on device debugging on the device.
More info on the error: It sometimes occurs when the ADE changes the object tree in quick successions. It is a known issue but should not effect your World.
L
Luca
said
about 9 years ago
I Wolfgang.
It seems to be the jQuery Mobile Ghost Click in .tap() function that makes button to be tapped twice in quick succession.
Luca