Sie sind nicht angemeldet.

1

Dienstag, 9. April 2019, 06:25

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..

Beiträge: 770

Wohnort: Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

2

Dienstag, 9. April 2019, 12:37

Hi)

If you pass variables to Krpano via deeplinking, like

Quellcode

1
?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

3

Dienstag, 9. April 2019, 13:54

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.