You are not logged in.

Dear visitor, welcome to Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.


Wednesday, August 2nd 2017, 6:36pm

Making Radar touch controls work with gyro2 plugin

Has anyone had any luck getting the radar touch controls to work with the gyro2 plugin? I'm referring to the way you can drag the radar cone to change the pano orientation. It seems like this functionality is disabled when the gyro is enabled. Since we have access to the radar source code, I've got some ideas about how to fix it but I was curious if I was just missing something obvious about making these plugins play better together.



Wednesday, August 2nd 2017, 7:16pm


I solved this by disabling the gyro plugin on a ondown.touch event added to the radar layer and then re-enabling the gyro plugin on a onup.touch event.


Wednesday, August 2nd 2017, 9:11pm


good idea/solution!

The reason why the radar dragging isn't working during gyro control is that the gyro is constantly updating the view and so overruling/overwriting a potential control from somewhere else (like from the radar plugin).

Best regards,

Similar threads