You are not logged in.

1

Monday, August 26th 2013, 9:57pm

Radar beam not showing?

Hello,

I'm trying to mimic "scenes with image map" demo on my vtour.

Although I have successfully place the map in the tour with the spots, the radar beam doesn't show. I have the radar plugin placed in the xml but don't know why know beam appears.

This is my code...

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
<!-- global settings for map -->
	
	<plugin name="map" url="graphics/map.png" keep="true"  
	    	align="lefttop" x="16"  y="16" alpha="0.85" handcursor="false" 
	    	scalechildren="true"
        	width="320" 
        	height="227"
        	onclick="action(closemap);"
        	/>
        	
	<plugin name="scene_1" url="graphics/mappoint.png" keep="true" parent="map" align="lefttop" edge="center" x="50"  y="30" zorder="2" onhover="showtext(Parking Lot);"     	onclick="loadscene(scene_1, null, MERGE, BLEND(1));" />
	<plugin name="scene_2" url="graphics/mappoint.png" keep="true" parent="map" align="lefttop" edge="center" x="180" y="60" zorder="2" onhover="showtext(Weinkeller);" 	onclick="loadscene(scene_2, null, MERGE, BLEND(1));" />
	<plugin name="scene_3" url="graphics/mappoint.png" keep="true" parent="map" align="lefttop" edge="center" x="270" y="90" zorder="2" onhover="showtext(Barriquekeller);" onclick="loadscene(scene_3, null, MERGE, BLEND(1));" />
	
	<!-- activated hotpot -->
	<plugin name="activespot" url="graphics/mappointactive.png" keep="true" align="center" edge="center" visible="false" zorder="3" />
	
	<!-- radar plugin, set heading with "plugin[radar].heading" -->
	<plugin name="radar"
	    	url="%SWFPATH%/plugins/radar.swf"
	    	zorder="1"
	    	keep="true"
	    	heading="0"
	    	parent="map"
	    	mask="mapmask"
	    	align="lefttop"
	    	edge="center"
	    	x="0" y="0"
	    	linecolor="0"
	    	fillcolor="0xFF0000"
	    	scale="2.5"
	    	visible="false"
	    	/>
	
	<!-- mask for radar -->
	<plugin name="mapmask" url="graphics/map_mask.png" keep="true"
	    	parent="map"
	    	enabled="false"
	    	/>
		    	



	<!-- actions -->
	<action name="closemap">
    	set(onclick,action(openmap););
    	tween(width,64,distance(320,0.5),easeoutquad);
    	tween(height,45,distance(227,0.5),easeoutquad);
	</action>
	
	<action name="openmap">
    	set(onclick,action(closemap););
    	tween(width,320,distance(320,0.5),easeoutquad);
    	tween(height,227,distance(227,0.5),easeoutquad);
	</action>


	<!-- activatespot action, 
	 	- this action has two arguments:
	   	- %1 = the current spot
	   	- %2 = the current radar heading
	-->
	<action name="activatespot">
		set(plugin[activespot].parent, plugin[%1]);
		set(plugin[activespot].visible, true);
		
		copy(plugin[radar].x, plugin[%1].x);
		copy(plugin[radar].y, plugin[%1].y);
		
		trace(plugin[radar].x,'-',plugin[radar].y);
		
		set(plugin[radar].visible, true);
		set(plugin[radar].heading, %2);
	</action>

2

Tuesday, August 27th 2013, 10:21pm

after doing some checking, I get a warning stating that the plugin radar was skipped (skipped flash file: radar.swf

I believe this is the cause.

However, I am Not sure what is wrong because the plugin code url in my tour.xml file points to the plugins/radar.swf and yet I get the warning.

%SWFPATH%/plugins/radar.swf




obviously I am doing something wrong here. Any advice?

Umalo

Professional

Posts: 1,051

Location: Osijek, Croatia, EU

  • Send private message

3

Thursday, August 29th 2013, 12:41pm

If you are forcing HTML5 try adding: alturl="%SWFPATH%/plugins/radar.js" and be sure to have in plugin folder.
Also take care to turn visibility on somewhere in the code

4

Friday, August 30th 2013, 5:30am

If you are forcing HTML5 try adding: alturl="%SWFPATH%/plugins/radar.js" and be sure to have in plugin folder.
Also take care to turn visibility on somewhere in the code
Umalo,

Thank you for the response.

Just curious but I would like to know how to turn on the visibility.

Umalo

Professional

Posts: 1,051

Location: Osijek, Croatia, EU

  • Send private message

5

Friday, August 30th 2013, 11:14am

Have overseen that you use action activatespot where this is already done by: set(plugin[radar].visible, true);

6

Monday, September 2nd 2013, 3:29am

Umalo,

Thank you again for the response. I realize that problem lay with the scenes and the not the radar plugin itself.

After adding this to each scene... the beam shows.

onstart="activatespot(scene_1, 340)"

Now I just have to know how to control the beam because it goes outside the map which I still don't understand why.

Alexey Tkachenko

Professional

Posts: 770

Location: Russian Federation

Occupation: Interpreting, Building virtual tours

  • Send private message

7

Monday, September 2nd 2013, 8:43am

Hi!

Use parent layer with maskchildren="true" for the map image, so the radar will be 'cut off' if it goes beyond map limits.

Or try playing with the scale of the radar:

http://www.krpano.com/plugins/radar/#top
Regards,

Alexey