onclick="looktohotspot" not working on all hotspots

  • hi all,

    trying to get "looktohotspot" to work on this pano:

    Nottingham High School

    all work, except one - the Music School. When clicked, viewer pans to look at, but fails to zoom in. What am I doing wrong? This in fact did this for 3 other hotspots, which I deleted. The skin is here:

    default skin

    any help & guidance gratefully appreciated.

    thanks

    Stu

  • Not sure if it matters, but you have this in your xml

    Code
    <!-- Music School 0xbedbeb --->


    which is resulting in a malformed xml.
    Change it to

    Code
    <!-- Music School 0xbedbeb -->
  • I think this is a bug in the looktohotspot function. This seems to be happening because the ath coordinates are crossing over from negative numbers (> -180) to positive (< 180) which is of course correct, but prevents the looktohotspot function from zooming in as it seems to think the hotspot is infinitely large. I've seen this happen also when the range of values for ath is greater than 360 degrees in a polygonal hotspot.

    Try changing

    to

  • Yes i have same problem...
    I solved this with additional finction, and set ath and atv for each hotspot *unsure*
    I'm not sure that is right way but its working *cool*
    you can see it in this tour http://webpokaz.ru/824003/html/

    Code
    <hotspot name="ehs" url="ehs.png" ath="-20" atv="43" /> <!-- empty hotspot for looking  -->
    <hotspot name="hs1"
     	...
     	onclick="looktohotspot(ehs)"
     	...>
    	<point ath="-56.1599" atv=" 60.3620" />
    	... many points ...
    	<point ath="-54.1590" atv=" 60.7598" />
    </hotspot>
  • I think this is a bug in the looktohotspot function. This seems to be happening because the ath coordinates are crossing over from negative numbers (> -180) to positive (< 180) which is of course correct, but prevents the looktohotspot function from zooming in as it seems to think the hotspot is infinitely large. I've seen this happen also when the range of values for ath is greater than 360 degrees in a polygonal hotspot.

    Try changing

    to

    Hi pinsane,

    thanks for the tip - seemed to do the trick....:

    http://www.360imagery.co.uk/VT/aerial/nott…igh_school.html

    thanks

    Stu

Participate now!

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