• Hi there guys


    I'm trying to get some coordinates from the krpano viewer using javascript. I hav gone through the javascript documentation, but they don't actually say anywhere what this line of code does:


    Code
    var vlookat = Number( krpano().get("view.vlookat") );


    Can someone please shed some light for me on this line of code. Specifically the section krpano().get("view.vlookat"). What the heck is the view.lookat and where am I getting this from???


    Thanks in advance

  • Hi chubbspet,

    krpano() is a javascript function that returns the Krpano object inside your html...

    Code
    function krpano() 
    {
    return document.getElementById("krpanoSWFObject");
    }


    This allow you to ask from within JavaScript to your Krpano...

    get("view.vlookat") is a function that retrieve the actual value of the variable view.vlookat from Krpano...

    More in the Documentation page, section Javascript Interface... have a look to the Javascript Example 2 and look inside the html code...
    Also, have a look to the krpano Quick XML Reference

    Hope this help...

    SAlut.

Participate now!

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