Navigate around a flat Pano - Limit Range

  • I have a flat pano style image that I'm displaying on my web site. I've done the multires function and can navigate around just fine. However, I would like it to come up in a square window that shows the whole pano ... black space on the top and bottom of the window. This will allow be to display the whole image initially and then allow the user to zoom in to see the detail. However, right now the user can scroll completely off the image vertically. I'd like to limit the ability to pan vertically and horizontally so you don't leave the image.

    Any suggestions?

    This isn't an issue with horizonal panning, just verticle panning.

    I've tried the following, but no luck.

    <view hlookat="0" vlookat="0" maxpixelzoom="1.0"
    fisheye="0.0"
    limitview="range"
    vlookatmin="-30"
    vlookatmax="30"
    architectural="1.0"
    />

    Thanks,

  • Hi,

    in the krpano.swf included in the 1.0.8 beta 9 tools are new automatic view range settings for that,

    e.g. try:

    Code
    <view limitview="fullrange" maxpixelzoom="1.0" />


    limitview="fullrange" - will set the viewing limits automatically to be able to view the whole image

    or:

    Code
    <view limitview="offrange" maxpixelzoom="1.0" fovmax="2.0" />


    limitview="offrange" - will set the same limits like "fullrange" but doesn't limit the zoom/fov,
    here you need to limited the fov by fovmax,

    best regards,
    Klaus

Participate now!

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