Deeplinking & default view settings in scene

  • Deeplinking wont unfortunately work if there is a default view in the
    tour.xml scene (hlookat="40.0" vlookat="40.0" fov="100") is set.

    I guess there is a change in tour.xml and/or in the skin.xml is necessary,
    to overwrite the default view on startup, if there
    is a startactions=lookat(24.63,2.9,90,0,0) in the URL is detected.

    I tried yesterday the whole day w.o. success - any ideas? *smile*
    Thx..

  • Hi)

    If you pass variables to Krpano via deeplinking, like

    Code
    ?view.vlookat=90

    then this variable gets overwritten during the 'loadscene' call when the 'vlookat' from the loaded scene is parsed and set.


    Switch on the 'deeplinking' parameter inside the 'skin_settings' and then you have the needed parameters inside URL to select needed scene and start view settings.

    Regards,

    Alexey

  • Thx for your reply Alex.

    I am afraid, that I did not asked precise: i want to use both features - together.
    Deeplinking is working. DEfault view is working too. But not together.

    a)if the page is called without startactions/vlookat, the default view should be taken
    b)if there vlookat in the URL, this one should taken.

Participate now!

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