Autorotate Portrait / Landscape on Mobile and Tablet

  • Hi,

    Is there a way to auto rotate the panorama from "Portrait" to " Landscape" when the panorama is view on Mobile or Tablet ?

    I found this on the web :

    Quote

    AppMobi.device.setRotateOrientation("portrait"); // or landscape

    This code can be add to the Div, but I don't know how to implement it into the Html file.

    My HTML file :

    Thanks for your help. *wink*

  • no, changing or locking the device orientation isn't possible from HTML5/Javascript.

    Hi Klaus,

    Well on the latest KrPano Pre-release I realized you can set the mobile phone to Landscape modus as this is what always happens when you tap the VR Cardboard button. How could we make it for all virtual tours?

    Thanks

  • Hi,

    that's are just a couple of xml lines and not related to any krpano version.

    There the change of the screen orientation will be checked and when it's portrait orientation an image will be shown.

    When using the 1.19 pre-release 2 and the vtourskin.xml from there, just add these lines to it to do that also for non-VR:

    Best regards,
    Klaus

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!