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()

  • Thanks Klaus, "url.no-mobile" worked beautifully!

    I was able to combine it with scale.no-mobile="2", so my small mobile hotspot images display correctly.

    Thank you for the elegant design!

  • 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.

Participate now!

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