Conditional Hotspot image URL for Mobile devices

  • I wish to use a smaller hotspot image on mobile devices. I have tried the following, but it does not work:

    Code
    <hotspot name="mySpot"  url="images/large.png"  devices="!mobile"  />
    Code
    <hotspot name="mySpot"  url="images/small.png"  devices="mobile"  />


    Is there a way to do this? Perhaps I am meant to use hotspot[name].loadStyle()

  • Hi,

    the code itself is okay and should work (maybe you need to clear the browser cache).

    With version 1.18 you could also do:

    Code
    <hotspot name="mySpot"
             url.no-mobile="images/large.png" 
             url.mobile="images/small.png" 
             />

    Best regards,
    Klaus

  • Anyone know how to do this but with stereo? I have a hotspot that I want to behave one way when in VR mode, and a different way when not in VR mode.

    Tried:


    url.no-stereo="images/large.png"
    url.stereo="images/small.png"


    url.no-webvr="images/large.png"
    url.webvr="images/small.png"


    as examples and they didn't seem to work.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!