You are not logged in.

1

Thursday, June 23rd 2016, 11:36pm

Deep-Linking

Can someone please point me to the Deep-Linking documentation? I have looked allover the site and can not seam to find information on it.
Thanks.

3

Friday, June 24th 2016, 6:26pm

http://krpano.com/forum/wbb/index.php?pa…ews119vtourskin
Thank you,

Here is what I'm trying to do,

Code Chunk

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
copy(adr, browser.location);
		indexoftxt(qi, get(adr), '?');
		if(qi GT 0, subtxt(adr, adr, 0, get(qi)));
		copy(si, scene[get(xml.scene)].index);
		copy(h, view.hlookat);
		copy(v, view.vlookat);
		copy(f, view.fov);
		copy(d, view.distortion);
		copy(a, view.architectural);
		clamp(d, 0.0, 1.0);
		clamp(a, 0.0, 1.0);
		set(pp, calc(f LT 10 ? 6 : 2));
		roundval(h, get(pp));
		roundval(v, get(pp));
		roundval(f, get(pp));
		roundval(d, 2);
		roundval(a, 1);
		set(adr, calc(adr + '?startscene=' + si + '&startactions=lookat('+h+','+v+','+f+','+d+','+a+');'));
		js( history.replaceState(null, document.title, get(adr)); );



Specific Question:

Source code

1
copy(si, scene[get(xml.scene)].index);

Specificly calls the scene index number of only the current XML document. However I have multiple XML documents for different tours. For instance my first loaded xml may be:

home/tour.xml

but then that has hot spots that link to other tours that are located in:

home/tour1/tour.xml
home/tour2/tour.xml
home/tour3/tour.xml

each of theses tours have their own set of scenes.

I need a way that will allow deep linking directly into one of the scenes in these tours.

Any thoughts?
~Thanks.