can I add a "fullscreen" button to the "Compare Panos 2 (Flat Panos) - The Pillars of Creation" example

  • It would work the same way as in any example, e.g.:

    Code
    <layer name="fullscreenbutton"
           ...
           onclick="switch(fullscreen);"
           />


    Or here a more dynamic approach with different graphics for entering and exiting the fullscreen mode:

    Code
    <layer name="fullscreenbutton"
           ...
           url="link:event.onenterfullscreen,event.onexitfullscreen:fullscreen ? '%CURRENTXML%/enterfullscreen.png' : '%CURRENTXML%/exitfullscreen.png'"
           onclick="switch(fullscreen);"
           />

    In that code the 'url' setting is linked to the fullscreen events, and when they get triggered, the fullscreen variable is checked and different image urls are set.

Participate now!

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