Sie sind nicht angemeldet.

1

Mittwoch, 4. November 2009, 15:01

Multi-MAP VR Tour, Textfield, External linking.

Hello,
I have a few questions.

MAP
In a virtual tour, of a 2 storey building, there are 2 hotspots maps. When the tour is initialized both maps are shown together instead of only one of them. How is it possible to show only the relevant map?


TEXTFIELD
In the same tour there is a "help" button and a "copyright" one, which are shown in different popup windows.
Is it possible to assign both the open and close commands to the button that launches the windows?
Is it possible to make the "help" button close the "copyright" window at the same time it opens the "help" window?


VIRTUAL TOUR
Still in the same tour: there is a main scene and various secondary ones.
Is it possible to arrive to a secondary scene from a link in an outer site?

Thanks.

Dieser Beitrag wurde bereits 4 mal editiert, zuletzt von »AlexanderSh« (7. November 2009, 11:06)


2

Freitag, 6. November 2009, 21:21

There are two pictures for one button.
How i can change one picture for another after onclick="action(show_html_field);"?

Quellcode

1
2
<plugin name="open-help" keep="true"  align="righttop" alpha="0.7" x="10" y="0" url="help-open.png" onclick="action(show_html_field);" visible="true" />
<plugin name="close-help" keep="true"  align="righttop" alpha="0.7" x="10" y="0" url="help-close.png" onclick="action(hidewindow,htmltext);" visible="false" />

3

Freitag, 6. November 2009, 21:41

Hi AlexanderSh,

Try this:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
<plugin name="open-help"  url="help-open.png"
	visible="true"  keep="true"  
	align="righttop" alpha="0.7" x="10" y="0"
	onclick="action(show_html_field);
	  	set(plugin[open-help].visible,false);
	  	set(plugin[close-help].visible,true);"/>
<plugin name="close-help"  url="help-close.png"
	visible="false"  keep="true"
	align="righttop" alpha="0.7" x="10" y="0"
	onclick="action(hidewindow,htmltext);
	  	set(plugin[close-help].visible,false);
	  	set(plugin[open-help].visible,true);" />


SAlut.

4

Freitag, 6. November 2009, 22:06

michel,
it's working *thumbsup*
many thanks

5

Freitag, 6. November 2009, 23:47

I have two maps.
How is it possible to show only the first map, when the tour is started? and to open the second map by relevant button.

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
<plugin name="map1"
	url="1stfloor.png" zorder="1" align="righttop" edge="righttop" x="10"  y="25" alpha="0.85" 
	handcursor="false" 
	width="300" 	height="112"
	onclick="action(closemap1);"
            />

<plugin name="map2"
	url="2ndfloor.png" zorder="1" align="righttop" edge="righttop" x="10"  y="25" alpha="0.85" 
	handcursor="false" 
	width="300" 	height="112"
	onclick="action(closemap2);"
            />

6

Samstag, 7. November 2009, 01:05

Hi AlexanderSh,

A possible code would be something like this:

Quellcode

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
<events onloadcomplete="set(plugin[map1].visible,true);" />

<plugin name="map1" url="1stfloor.png"
	visible="false" zorder="1" keep="true"
	align="righttop" edge="righttop" x="10"  y="25" alpha="0.85" 
	handcursor="false" 
	width="300" height="112"
	onclick="action(closemap1);"
            />

<plugin name="map2" url="2ndfloor.png"
	visible="false" zorder="1" keep="true"
	align="righttop" edge="righttop" x="10"  y="25" alpha="0.85" 
	handcursor="false" 
	width="300" height="112"
	onclick="action(closemap2);"
            />

<!-- a button to open map2 -->
<plugin name="open-map2"  url="map2-open.png"
	visible="true"  keep="true"  
	align="bottom" edge="bottom" alpha="0.7" x="0" y="25"
	onclick="set(plugin[map1].visible,false);
             	set(plugin[map2].visible,true); "
/>


SAlut.

7

Samstag, 7. November 2009, 10:54

Thanks, michel
This code has not worked.
I have tried other version of code and it has worked.

Quellcode

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
<krpano version="1.0.8"
onstart="action(closemap2); action(openmap1); action(showspots1); action (hidespots2);"
>

<!-- maps -->
<plugin name="map1"
	url="1stfloor.png" zorder="1" align="righttop" edge="righttop" x="10"  y="25" alpha="0.85" 
	handcursor="false" 
	width="300" 	height="112"
	onclick="action(closemap1);"
            />

<plugin name="map2"
	url="2ndfloor.png" zorder="1" align="righttop" edge="righttop" x="10"  y="25" alpha="0.85" 
	handcursor="false" 
	width="300" 	height="112"
	onclick="action(closemap2);"
            />

<!-- buttons -->
<plugin name="firstfloorbutton" keep="true"  align="righttop" alpha="0.7"
x="128" y="0" url="1st-floor.png"
onclick="action(closemap2); action(openmap1); action(showspots1); action(hidespots2);" />

<plugin name="secondfloorbutton" keep="true"  align="righttop" alpha="0.7"
x="189" y="0" url="2nd-floor.png"
onclick="action(openmap2); action(closemap1); action(showspots2); action(hidespots1);" />


Shalom

8

Samstag, 7. November 2009, 12:04

Still in the same tour: there is a main scene and various secondary ones.
Is it possible to arrive to a secondary scene from a link in an outer site?
Hi,

yes, but there more ways to do that,
e.g.
1. pass a variable to the html (page.html?var=...)
2. pass that to krpano via javascript
3. check for this variable in krpano and load the specific scene or something...

please have a look at this thread for an example:
Direct linking to a specific panorama

best regards,
Klaus

Ähnliche Themen