Dynamic sizing for image popups. Global 'width' parameter.

  • Hello all!

    I have a number of image layers in my pano, that popup when a certain hotspot is clicked:


    <layer name="image1" type="image" url="evidence/01-evidence-lockpicks.jpg" style="popups"/>
    <layer name="image2" type="image" url="evidence/02-evidence-toy_aeroplane.jpg" style="popups"/>
    etc.

    As you can see, they have the common style 'popups' set.

    Is it possible within that style to have a width that is set dependant on the stagewidth? I.e. if stagewidth is greater than 1080px then image popup width is 960px, else image popup width is 90%.

    I've tried a few things, but haven't got it working. Can image width be set to 'a variable'?

    Thanks in advance.

    Sam

  • Alternatively, perhaps someone could tell me how to alter this code so that it applies to image1, image2, image3 etc. without just duplicating it?

Participate now!

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