Best way to detect and switch layers and styles if webvr is enabled

  • Hi,

    I would like to make dynamically certain styles and layers active, when webvr is used or faked.

    In my example I want to use hotspots for tooltips if webvr is enabled or faked

    and use layers for tooltips in all other conditions.

    If possible I would like to keep the original webvr events and procedures and to only add if necessary an own <action>.


    Here are my styles (defined in vtourskin.xml):

    What is the best way to do the switch?
    Can I check dynamically (during runtime) within the <style>, wheter webvr is enabled or faked?

    All my tries failed so far. I would appreciate help for this topic. If possible without changing webvr events and procedures.

    Is there a difference to switch in <styles> and <Layers>?

    Edited once, last by Tester 17 (August 4, 2026 at 1:01 PM).

Participate now!

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