You are not logged in.

1

Monday, October 7th 2013, 1:30pm

Open XML files that are stored on different locations

Lately I've been busy building a map of a local town in my region.
The panorama's of the road and the street are all rendered together.
15-20 Other panorama's which are mainly cafeteria or stores have all been rendered seperately.

What I Want to do
I want the panorama's that are being rendered seperately to have just one hotspot at the door which must
open one xml file of the map that corresponds with the geographical location of that panorama.

Again, these panorama's are rendered seperately and are stored in different maps on the same server.

Could somebody help me out?

Thanks.

2

Monday, October 7th 2013, 3:02pm

Hi,

other xml files can be loaded anytime with the loadpano() action:
http://krpano.com/docu/actions/#loadpano

If your questions is related to the default VTOUR skin - the skin itself is designed only for loading other scenes - that means when loading an other xml, the IGNOREKEEP flag should be used on the loadpano() call to remove everything from the current skin.

Best regards,
Klaus

3

Monday, October 7th 2013, 4:34pm

Thanks Klaus, I think this is working.

However, I do still have a problem.
http://www.profimage.nl/panos/projecten/…ond/YvF8RN.html

When I click it, it takes me to another panorama, which is what I want. From there on out, whatever hotspot I click, they all try
to search in the standalone folder for the buildXX.xml code which is not where it is placed.

Any idea on how to fix this?

Thanks!

This post has been edited 1 times, last edit by "spablauw" (Oct 7th 2013, 4:46pm)


4

Monday, October 7th 2013, 4:58pm

Sorry, but I don't understand what you mean...

5

Monday, October 7th 2013, 5:03pm

If you navigate 180 degrees horizontally and click on the navigation arrow it will not load http://www.profimage.nl/panos/projecten/…map/build12.xml.
Instead it says that it can't find build12.xml in the strandpaviljoen_bad_egmond folder, which is where we started our journey.

Note that the url doesn't change to http://www.profimage.nl/panos/projecten/…emap/build.html also.
I get the idea that, because it doesn't locate the SWF file, it tries to operate just from within the single xml file.

This post has been edited 1 times, last edit by "spablauw" (Oct 7th 2013, 5:15pm)


6

Thursday, October 10th 2013, 12:27pm

Any Idea?

7

Thursday, October 10th 2013, 12:38pm

Hi,

see here for the default behavior of the loadpano() action:
http://krpano.com/docu/actions/#loadpano

That xml paths there need to be are either absolute paths or relative to the basedir variable (which is %FIRSTXML%) by default. That means all following loadpano() calls will assume an relative path to the first loaded xml by default.

That mean either use absolute paths, e.g. by using any of url placeholders in the xml:

Source code

1
loadpano(%SWFPATH%/pano1.xml, ...);

or change the basedir variable to an other default value:

Source code

1
<krpano ... basedir="%SWFPATH%" ...>


Best regards,
Klaus

8

Thursday, October 10th 2013, 1:02pm

Thanks for your reply.

I do get an idea about what you're saying but can't really figure it out.

This is the swf path:

Source code

1
http://www.profimage.nl/panos/projecten/interactievemap/build.swf

This is the xml file:

Source code

1
http://www.profimage.nl/panos/projecten/interactievemap/build11.xml

This is my the current location:

Source code

1
http://www.profimage.nl/panos/projecten/ondernemend_egmond/standalone/strandpaviljoen_bad_egmond/YvF8RN.html


Now how do I construct the code?

Thanks.

9

Monday, November 18th 2013, 10:08am

Any Idea?

10

Wednesday, November 20th 2013, 2:44pm

Hi,

try using relative paths - use '../' for one folder up.

Best regards,
Klaus

11

Wednesday, November 20th 2013, 3:27pm

Hi Klaus,

Thanks for your respone!

I changed the basedir to

Source code

1
basedir="%../../../interactievemap/build.swf%"

It results in a fatal error though.

Beneath is the other code. Please tell me if you spot any blunder.

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?xml version="1.0" encoding="UTF-8"?>
<!-- for xml compliance -->
<krpano version="1.0.8.14" basedir="%../../../interactievemap/build.swf%">
	<!-- actions to perform while loading -->
	<events onxmlcomplete="onxmlcompleteaction();"/>
	<action name="onxmlcompleteaction">
		if(autorotate.enabled==false,set(plugin[autorotationOFF].visible,false); set(plugin[autorotationON].visible,true);,set(plugin[autorotationOFF].visible,true); set(plugin[autorotationON].visible,false););
		firstloadcompleteaction();
	</action>
	<action name="playpanosounds">
		playbackgroundsound(none);
	</action>
	<action name="stoppanosounds">
		stopbackgroundsound();
	</action>
	<action name="closepanoobjects">
	</action>
	<!--************** Panorama *******************************************************************-->
	<!-- @File="YvF8RN0.xml" @PanoName="6" @FilePath="H:/Profimage/ONDERNEMEND EGMOND/Strandpaviljoen Bad Egmond/2. Sphericals/6. Strandpaviljoen Bad Egmond (45 foto's) 25-07-2013.JPG" -->
	<plugin name="map" url="http://www.profimage.nl/panos/projecten/interactievemap/builddata/graphics/map.png" keep="true" align="lefttop" x="10" y="10" width="5.028%" height="9.952%" onclick="openurl(http://www.profimage.nl/panos/projecten/interactievemap/build.html, _self);" onloaded="set(keep,false);"/>
	<panoview h="143.95" v="0" fov="70"/>
	<!-- view parameters -->
	<view fisheye="0" limitview="range" hlookatmin="-180" hlookatmax="180" vlookatmin="-90" vlookatmax="66.6048" fovmin="30" fovmax="70.0008" fov="70" hlookat="143.95" vlookat="0"/>
	<progress showload="none" showwait="none"/>
	<autorotate horizon="0" tofov="70" waittime="3" speed="2"/>
	<!-- preview image -->
	<preview url="YvF8RNdata/YvF8RN0/preview.jpg" type="CUBESTRIP" striporder="FRBLUD" details="16"/>
	<!-- the pano itself -->
	<image type="CUBE" multires="true" tilesize="763" baseindex="0">
    	<level tiledimagewidth="6098" tiledimageheight="6098">
        	<left url="YvF8RNdata/YvF8RN0/3/3/%v_%u.jpg"/>
        	<front url="YvF8RNdata/YvF8RN0/0/3/%v_%u.jpg"/>
        	<right url="YvF8RNdata/YvF8RN0/1/3/%v_%u.jpg"/>
        	<back url="YvF8RNdata/YvF8RN0/2/3/%v_%u.jpg"/>
        	<up url="YvF8RNdata/YvF8RN0/4/3/%v_%u.jpg"/>
        	<down url="YvF8RNdata/YvF8RN0/5/3/%v_%u.jpg"/>
    	</level>
    	<level tiledimagewidth="3049" tiledimageheight="3049">
        	<left url="YvF8RNdata/YvF8RN0/3/2/%v_%u.jpg"/>
        	<front url="YvF8RNdata/YvF8RN0/0/2/%v_%u.jpg"/>
        	<right url="YvF8RNdata/YvF8RN0/1/2/%v_%u.jpg"/>
        	<back url="YvF8RNdata/YvF8RN0/2/2/%v_%u.jpg"/>
        	<up url="YvF8RNdata/YvF8RN0/4/2/%v_%u.jpg"/>
        	<down url="YvF8RNdata/YvF8RN0/5/2/%v_%u.jpg"/>
    	</level>
    	<level tiledimagewidth="1524" tiledimageheight="1524">
        	<left url="YvF8RNdata/YvF8RN0/3/1/%v_%u.jpg"/>
        	<front url="YvF8RNdata/YvF8RN0/0/1/%v_%u.jpg"/>
        	<right url="YvF8RNdata/YvF8RN0/1/1/%v_%u.jpg"/>
        	<back url="YvF8RNdata/YvF8RN0/2/1/%v_%u.jpg"/>
        	<up url="YvF8RNdata/YvF8RN0/4/1/%v_%u.jpg"/>
        	<down url="YvF8RNdata/YvF8RN0/5/1/%v_%u.jpg"/>
    	</level>
    	<level tiledimagewidth="762" tiledimageheight="762">
        	<left url="YvF8RNdata/YvF8RN0/3/0/%v_%u.jpg"/>
        	<front url="YvF8RNdata/YvF8RN0/0/0/%v_%u.jpg"/>
        	<right url="YvF8RNdata/YvF8RN0/1/0/%v_%u.jpg"/>
        	<back url="YvF8RNdata/YvF8RN0/2/0/%v_%u.jpg"/>
        	<up url="YvF8RNdata/YvF8RN0/4/0/%v_%u.jpg"/>
        	<down url="YvF8RNdata/YvF8RN0/5/0/%v_%u.jpg"/>
    	</level>
    	<!-- mobile phone / iphone images -->
    	<mobile>
        	<left url="YvF8RNdata/YvF8RN0/3/mobile_face.jpg"/>
        	<front url="YvF8RNdata/YvF8RN0/0/mobile_face.jpg"/>
        	<right url="YvF8RNdata/YvF8RN0/1/mobile_face.jpg"/>
        	<back url="YvF8RNdata/YvF8RN0/2/mobile_face.jpg"/>
        	<up url="YvF8RNdata/YvF8RN0/4/mobile_face.jpg"/>
        	<down url="YvF8RNdata/YvF8RN0/5/mobile_face.jpg"/>
    	</mobile>
    	<!-- tablet pc / ipad images -->
    	<tablet>
        	<left url="YvF8RNdata/YvF8RN0/3/tablet_face.jpg"/>
        	<front url="YvF8RNdata/YvF8RN0/0/tablet_face.jpg"/>
        	<right url="YvF8RNdata/YvF8RN0/1/tablet_face.jpg"/>
        	<back url="YvF8RNdata/YvF8RN0/2/tablet_face.jpg"/>
        	<up url="YvF8RNdata/YvF8RN0/4/tablet_face.jpg"/>
        	<down url="YvF8RNdata/YvF8RN0/5/tablet_face.jpg"/>
    	</tablet>
	</image>
	<!--************** Hotspots and lensflares ****************************************************-->
	<hotspot name="spot0" onclick="loadpano(../../../interactievemap/build11.xml)" url="YvF8RNdata/graphics/spots/spot0.png" crop="0|0|65|65" frame="0" lastframe="9" frameheight="65" framewidth="65" onloaded="set(stopSequence,false);animate(spot0,0.1);" ath="-178.599" atv="4.92737" width="7%" height="7%"/>
	<action name="hidepanospotsaction">
		set(hotspot[spot0].visible, false);
	</action>
	<action name="showpanospotsaction">
		set(hotspot[spot0].visible, true);
	</action>
	<!-- close all hotspots -->
</krpano>

Similar threads