Set distorted hotspot width

  • Hi, I would like to set the width of a distorted hotspot depneding on the screen resolution, I would like the hotspot to fill 100% of the screen when the device is on portrait mode and 50% in landscape.
    with onviewchange="set(hotspot[myhotspot].width,stagewidth)"it doesn't work as expected, is it because when distorted is set to true then the width and height is relative to a 1000px cube ?
    So how could I achieve this ?

    Second problem, on android default browser a bottom bar comes over krpano, so I have to change oy value of the hotspot to keep it visible :

    Is there a better way to do so ?
    here is the online example : http://www.irealite360.com/saint_nazaire

    Many thanx !

  • Hi Jerome,

    Not sure but..
    Maybe use the scale to change size?
    Or first asign a width to it?
    Perhaps something with spheretoscreen?


    I'll have a look in my aircompass tests, maybe i find something better.
    I used scale though and that works, but i didn't test for orientation change.

    Tuur *thumbsup*

Participate now!

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