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.

  • "officinepanottiche" started this thread

Posts: 130

Location: Venezia

Occupation: interactive pictures

  • Send private message

1

Friday, August 5th 2011, 1:09pm

iPad radar

Hi, anyone has an example of ipad complaint radar with radar.js!?
:-P
Or better a good map working ewith ipad?
Is the father-children bug resolved!?
Thanx to all.

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
   <!-- RADAR PLUGIN, set heading with "plugin[radar].heading"  
	      	--> 
	<plugin name="radar"
	    	url="plugins/radar.swf"
	    	alturl="plugins/radar.js" 
        	zorder="1"
	    	keep="true"
	    	heading="0"
	    	parent="map"
	    	mask="mapmask"
	    	align="leftbottom"
	    	edge="center"
	    	x="0" y="0"
	    	linecolor="0"
	    	fillcolor="0xbf0a29"
	    	fillalpha="0.25"
	    	scale="2.5"
	    	visible="false"
	    	/>


this resolves in loading plugin radar.js error

2

Saturday, August 6th 2011, 11:53am

Hi,

do you use the 1.0.8.14 viewer?

best regards,
Klaus

  • "officinepanottiche" started this thread

Posts: 130

Location: Venezia

Occupation: interactive pictures

  • Send private message

3

Monday, August 8th 2011, 11:41am

Now I am trying! :-)
http://www.officinepanottiche.com/test/v…tand/itour.html

Map disappeared.
:-(

This post has been edited 1 times, last edit by "officinepanottiche" (Aug 8th 2011, 12:33pm)


  • "officinepanottiche" started this thread

Posts: 130

Location: Venezia

Occupation: interactive pictures

  • Send private message

4

Tuesday, August 9th 2011, 4:50pm

Here I am again....
now I can make th radar work, but how do I mask it?!
:-P my masks turn out like normal pngs...

  • "officinepanottiche" started this thread

Posts: 130

Location: Venezia

Occupation: interactive pictures

  • Send private message

5

Thursday, August 11th 2011, 1:30pm

I kind of resolved...
A bit tricky and not doing what I wanted... I am compelled to a not transparent map!
The map is a background, plain, alpha="1" and color the one you want as active room background.
No mask parameter in radar plugin.

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
  <plugin name="map" 
      url="nav/map-empty.png" 
      keep="true" 
      enabled="true"  
      visible="true"
   align="rightbottom" x="0"  y="0" 
      alpha="1.0" 
      handcursor="false" 
      children= "true"
   scalechildren="true"
      width="512" 
      height="512"
      zorder="2"
        />
<plugin name="radar"
    url="plugins/radar.swf"
    alturl="plugins/radar.js"
    zorder="1"
    keep="true"
    heading="-90"
    parent="map"
    align="rightbottom"
    edge="center"
    x="0" y="0"
    linecolor="0"
    fillcolor="0xA2978A"
    fillalpha="1.0"
    scale="0.87"
    visible="false"
    />

A plugin called i-mapmask, child of map and with no url...

Source code

1
2
3
4
5
6
7
8
9
10
11
<plugin name="i-mapmask" 
        	url="" 
        	keep="true" parent="map" enabled="true"
        	edge="rightbottom" 
	      	align="rightbottom" x="0"  y="0" 
        	alpha="1.0" 
        	handcursor="true" 
        	width="512" 
        	height="512"
        	zorder="1"
        	/>	
.
A collection of masks PNG with the map and "holes" in the right areas, room backgrounds. Alpha=1 and zorder> than radar <than mappoints, habdcursor false.

On every scene I put the code to update the image that masks the javascript radar.

Source code

1
2
3
4
5
6
   <plugin name="imapmask" 
        url="nav/r1c-imask.png" 
        parent="map" 
        enabled="false"
        devices="ipad" 
        onloaded="updateimask();" />


Source code

1
2
3
  <action name="updateimask">	
		set(plugin[i-mapmask].url, get(plugin[imapmask].url));
	</action>


Radar cone must be scaled accordingly with the map and mapmasks images, or you will see it out of bounduaries given by the sandwich of layers you put it in.

As you can see from the roughness of what i have done, I will never be a good coder. yet it works.