You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Tuesday, April 9th 2019, 6:25am

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

Alexey Tkachenko

Professional

Posts: 735

Location: Sevastopol, Crimea, Russian Federation

Occupation: Interpreting, Building virtual tours

  • Send private message

2

Tuesday, April 9th 2019, 12:37pm

Hi)

If you pass variables to Krpano via deeplinking, like

Source code

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

Tuesday, April 9th 2019, 1:54pm

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.