Enabling Autorotation on Mobile Devices

Q&A about the latest versions
Post Reply
chrispaulis
Posts: 21
Joined: Wed Mar 09, 2016 5:19 pm

As I learn P2V version 5.1, I'm looking for the feature that existed in the prior version, enabled under the Mobile tab in Autorotation. In outputting my project, I'm enabling Autorotation; however, even on my Mac in Safari, the published version doesn't begin the smooth autorotation I expect. When viewing it on my iPhone, autorotation also does not work, especially in response to my GPS position. Was this feature removed in version 5.1? If not, how do I set it up?
User avatar
Hopki
Gnome
Posts: 13018
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Chris,
You can not have auto rotate and Gyro at the same time, this has always been the case even in older versions.
What you need to do is decide whether you want Gyro on at start up or not. You then set this in the HTML template.


To help you can start and stop and toggle the gyro using javascript code in a GoTo URL actions.
Example:

Source: Mouse Click
Action: Go To URL
URL: javascript:gyro.enable();
Target: leave blank

You can also use in the URL action:

javascript:gyro.disable();
javascript:gyro.toggle();

So the button that turns on Auto Rotate would also have the action to disable the gyro.
And of course the button to turn the gyro back on will stop auto rotate.
Regards,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Post Reply