• Hi,
    i am not able to orient the radar on the good direction.
    on first load the radar must be at 90°showing the map's top.
    How can i set this correctly ?
    Thanks !

    Edited once, last by gab696 (November 5, 2008 at 12:41 PM).

  • Hi,

    your code is correct

    here is also a small tip that helps finding the correct heading:

    1. include the options plugin to see the current hlookat value

    2. set radar heading to "0"

    3. look at a object on pano and notice the hlookat value
    (e.g. hlookat_view = 31)

    4. move the radar to point to the same object on the map and notice the hlookat value agagin
    (e.g. hlookat_map = -164)

    5. now the heading can be calculated:

    heading = hlookat_map - hlookat_view
    (e.g. heading = -164 - 31 = -195)

    6. if you want (but thats not necessary) you can adjust the heading to be in range 0..360
    by adding or substracting +360/-360 until the heading is in the range
    (e.g. heading = -195+360 = 165)

    I hope this helps a little bit, later I will also add a something to adjust the heading direct,

    regards,
    Klaus

  • well i updated to the new 1.0.7 and tried the setting above to get the radar in sync and it did not work. it seems it does not matter what setting i choose it always starts in the same direction. the radar heading does nothing for me the pano acts the same with that part of the code missing. it is like it is not even being read. anyone have any ideas?

  • Hi,

    the radar code looks okay (you set all headings to "180", that means e.g. when hlookat is "0" the radar should point to west)
    but there there a two <preview> and <image> tags,
    and in the <data name="html1"> tag the

    Code
    <img src=" fi_logo.jpg" />


    looks not okay, I think the blank before "fi_logo.jpg" must be removed, e.g.:

    Code
    <img src="fi_logo.jpg" />

    regards,
    Klaus

  • I have been struggling with this for some time now. Seem to have solved all my tour issues and XML coding apart from this.
    started trying to change values in following code example

    Code
    <action name="load1"> 
    set(plugin[spotx].x,116); 
    set(plugin[spotx].y,180); 
    set(plugin[radar].heading,90); 
    set(plugin[radar].x,116); 
    set(plugin[radar].y,180); 
    loadpano(preston1.xml,null,KEEPALL,BLEND(1));


    But to no avail then though it might be the keepall function causing the problem so changed it to blend still nothing I am completly lost now as seem to have tried everything the full code ofr this page is as follows


    Would really aprreciate any input into this it's very frustrating that once you think you understand evrything it then doesn't work.

Participate now!

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