UPDATED 15-12-2009
DOWNLOAD:
Coordinates finder
INSTALLATION:
- Unzip in same directory as the HTML file
- Copy and paste the following code inside the HTML file, anywere between the tags <head></head>
-Copy and past the following code in your pano.xml file
INSTRUCTIONS:
- Right click on the panorama and select 'Coordinates finder - ON'
- Move the panorama and see how the values change
- Alternatively double click on the panorama to obtain the coordinates of that point
- To close it, click on the 'X' or right click and select 'Coordinates finder - OFF'
THANKS:
Michel you are a genius!
And of course thanks to Mr. K for Krpano!
NOTES:
I've included the textfield plugin in order to simplify the "intallation". It is the version 1.0.8-beta8
--------------------------------------------------------------------------------------------------
Hello everybody!
Recently a client asked to be able to create hotspots himself. So I am trying to make things really easy.
I have created an action to create hot spots, so he only has to edit one line in the xml file introducing some parameters.
Of course two of the parameters are "ath "and "atv" so I have made the following "home made hot spot editor":
http://clients.tourvista.co.uk/vt/orca/towns/…index_orca.html
Please ignore all the buttons, thumbnails and stuff... my "cool" editor consist on:
- A cross in the middle of the window: the plan is that he will move the panorama and choose where he wants to place the hot spot.
- A white button that shows the ath and atv coordinates when is clicked.
Ideally I would like to show the coordinates all the time without the hassle of clicking all the time. Also, if it is possible, I would like to show entire numbers (without decimals). Any ideas?
I know I could use "options.swf" to see those coordinates, but I don't want to confuse the client with such a mixture of parameters and numbers.
A really cool alternative would be to show a little box with the coordinates when he click twice somewhere on the panorama, but I have no idea how to achieve that!
My code is the following:
In the HTML file:
In the xml file:
<!-- ***************** HOT SPOTS EDITOR ********************** -->
<action name="run_hs_editor">
addplugin(hs_editor);
set(plugin[hs_editor].url,%HTMLPATH%/files/panos/images/cross.png);
set(plugin[hs_editor].zorder,5);
set(plugin[hs_editor].align,center);
set(plugin[hs_editor].handcursor,false);
set(plugin[hs_editor].keep,true);
addplugin(click);
set(plugin[click].url,%HTMLPATH%/files/panos/images/click.png);
set(plugin[click].zorder,10);
set(plugin[click].align,center);
set(plugin[click].keep,true);
set(plugin[click].edge,topleft);
set(plugin[click].x,20);
set(plugin[click].y,20);
set(plugin[click].onclick,action(buildtext););
</action>
<data name="coordinates"></data>
<action name="buildtext">
txtadd(data[coordinates].content, get(view.hlookat), ' <br/> ', get(view.vlookat) );
addplugin(hs_coordinates);
set(plugin[hs_coordinates].url,%HTMLPATH%/files/krpano/textfield.swf);
set(plugin[hs_coordinates].html,data:coordinates);
set(plugin[hs_coordinates].width,120);
set(plugin[hs_coordinates].height,35);
set(plugin[hs_coordinates].zorder,11);
set(plugin[hs_coordinates].background,false);
set(plugin[hs_coordinates].align,center);
set(plugin[hs_coordinates].x,122);
set(plugin[hs_coordinates].y,40);
set(plugin[hs_coordinates].keep,true);
</action>
Display More
Thank you very much !