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.
![]() |
Source code |
1 2 3 |
var krpano = document.getElementById("krpanoSWFObject"); var mousex = krpano.get("mouse.x"); var mousey = krpano.get("mouse.y"); |
This post has been edited 1 times, last edit by "Jarredja" (Sep 30th 2009, 5:20am)
![]() |
Source code |
1 2 3 4 |
align="center" edge="lefttop" x="-230" y="20" |
![]() |
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
<hotspot name="hotspot1" url="ball.swf" ath="-87" atv="4" scale="0.5" zoom="true" onhover="showtext(show text here,bold);" keep="false" visible="true" enabled="true" handcursor="true" capture="true" children="true" zorder="0" alpha="1.00" blendmode="normal" smoothing="true" onloaded="resetsize();" onout="" onclick="looktohotspot(hotspot1); loadpano(pano.xml, null, MERGE, BLEND(1)); lookat(-170,0,10); zoomto(90,smooth(720,50,360));" /> |
Your are talking about to get coordinates of plugins and Jarredja
Quoted
I have 30 plugins (small red ball)
Hotspot coordinates are relative to the full 360 pano and plugins coordinates are relative to the Krpano display screen.
Quoted
I did stay away from the ath= and atv= as i thought they were for positions within the 360 degree panorama itself and that the X and Y was for a position on the actual flash viewer?
This post has been edited 1 times, last edit by "michel" (Sep 30th 2009, 8:56pm)
![]() |
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 |
<krpano version="1.0.8"> <!-- use only a grid preview pano to save download space ;-) --> <preview type="grid(cube,16,16,512,0xCCCCCC,0xFFFFFF,0x999999);" details="16" /> <!-- floor plan - aligned lefttop to get correct X Y --> <plugin name="floor_plan" url="your_floor_plan_image.png" align="lefttop" edge="lefttop" handcursor="false" capture="false" /> <!-- cursorposition plugin - one aligned leftbottom of the floor plan, the other one aligned righttop --> <plugin name="cur_pos_leftbottom" url="%SWFPATH%/plugins/cursorposition.swf" parent="floor_plan" align="leftbottom" edge="lefttop" zorder="1" blendmode="difference" /> <plugin name="cur_pos_righttop" url="%SWFPATH%/plugins/cursorposition.swf" parent="floor_plan" align="righttop" edge="lefttop" zorder="1" blendmode="difference" /> <!-- the childs, list of small red ball you need --> <!-- X value from the cursorposision plugin --> <!-- Y value from the cursorposision plugin --> <plugin name="red_ball_1" url="your_red_ball_image.png" zorder="99" parent="floor_plan" align="lefttop" edge="center" x="70" y="60" /> <plugin name="red_ball_2" url="your_red_ball_image.png" zorder="99" parent="floor_plan" align="lefttop" edge="center" x="168" y="168" /> </krpano> |
This post has been edited 4 times, last edit by "michel" (Sep 30th 2009, 10:32pm)
Quoted
I've no idea what you just said with childs and parents........
Salutparent/child system:
- parent attribute for all plugins/hotspots
- usage:
- parent="pluginname" or parent="plugin[pluginname]" or parent="hotspot[hotspotname]"
- the aligment of a child refers then to the parent
- can be changed dynamically
- "scalechildren" attribute - to scale also child plugins on parent scaling, default="false"
Quoted
<plugin name="floor plan"
Your are absolutly right...
Quoted
I did find that the parent tags didn't work though. Either the parent plugin should be renamed map or the parent tags should be made to match name of the plugin