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.

Tuur

Sage

  • "Tuur" started this thread

Posts: 3,184

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

1

Sunday, January 25th 2009, 5:32am

Radar problem

Yo people,
check my google maps radar ... it doesn't jump to the next spot... the rest seems ok.

http://www.studiotuur.nl/RSG/tour.html


*confused*

Thanx

Tuur
http://www.virtualtuur.com
Skype:studiotuur

This post has been edited 1 times, last edit by "Tuur" (Jan 25th 2009, 12:35pm)


Tuur

Sage

  • "Tuur" started this thread

Posts: 3,184

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

2

Monday, January 26th 2009, 12:44am

Still one problem...

when i navigate by maps it works perfect..
But when i navigate by hotspots, the spots in the maps radar don't follow .. so it stays at the spot where it was used for the last time in maps..


Thanx

Tuur *thumbup*
http://www.virtualtuur.com
Skype:studiotuur

Graydon

Professional

Posts: 614

Location: Texas

Occupation: Industrial gas turbine services.

  • Send private message

3

Monday, January 26th 2009, 2:46am

There's an action in the map example that causes the map points to be updated when you click on a spot in the map...

Source code

1
2
3
4
	<action name="updatespot">
		plugin[map].activatespot(%1);
		plugin[map].pantospot(%1);
	</action>


You'll need to replicate this for loading different panos from your hotspots.

Tuur

Sage

  • "Tuur" started this thread

Posts: 3,184

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

4

Monday, January 26th 2009, 8:56am

should i put it in the tour.xml or in 1.xml nd 2.xml ???

Thanx

Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

Shanti

Intermediate

Posts: 301

Location: Puerto Vallarta

Occupation: Web Developer

  • Send private message

5

Monday, January 26th 2009, 11:19am

actually instead of loadpano, you need to cal the action defined on the maps (e.g. s1)

you have

Source code

1
2
3
4
5
6
7
<action name="s1">

    	plugin[maps].activatespot(s1);
    	plugin[maps].pantospot(s1);
    	loadpano(1.xml,null,MERGE,BLEND(1));
	
</action>


but you load your hotspots with

Source code

1
2
3
4
5
6
7
8
9
10
<action name="load1">

		set(plugin[spotx].x,293);
		set(plugin[spotx].y,87);
		set(plugin[radar].x,293);
		set(plugin[radar].y,87);
		loadpano(1.xml,null,KEEPALL,BLEND(2));
		set(plugin[radar].heading,10);
	
</action>


don't know if this will work, but try

Source code

1
2
3
4
5
6
7
8
9
10
<action name="load1">

		set(plugin[spotx].x,293);
		set(plugin[spotx].y,87);
		set(plugin[radar].x,293);
		set(plugin[radar].y,87);
	    action(s1);
		set(plugin[radar].heading,10);
	
</action>



do this for all your hotspots, and your actions...and hopefully it will work :)

Tuur

Sage

  • "Tuur" started this thread

Posts: 3,184

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

6

Monday, January 26th 2009, 12:41pm

Yesssssss *thumbsup* *thumbsup* *thumbsup* *thumbsup*

thanx Shanti.. The last one works... very elegant way and much less code..

Works perfect *thumbup*

Thanx alot.

Tuur *thumbup*
http://www.virtualtuur.com
Skype:studiotuur

Posts: 69

Location: cairo egypt

Occupation: diving instructor/photographer

  • Send private message

7

Friday, February 12th 2010, 1:25am

check my google maps radar ... it doesn't jump to the next spot... the rest seems ok.



i think what you can also do is include the radar plugin in each of the sub xml plus the main one like that the radar will follow when you go via hotspots

cheers *smile*

Tuur

Sage

  • "Tuur" started this thread

Posts: 3,184

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

8

Friday, February 12th 2010, 1:52am

*g*

it's 2010 *g*

solved already last year ;-)

Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

Similar threads