![]() |
|
|
|
|
|
||||||||||
|
| User list | Rules | You are not logged in.
Hi,
I'm trying to create a button in the navigation to open and close the map. I can get a button to close the map, by using the action
'onclick="closemap
but can't get it to open again. If anyone can help, I'd be very grateful.
thanks
Offline
hi.... So, I am assuming you have a second code to 'onclick="openmap"
Destiny....
Offline
yes, I can create two buttons, one to open it and one to close it, but I'm having trouble getting it to switch from one to another.
Offline
I guess you need some logic that determines the current state of the map and then invokes the appropriate action.
Are there no clues in the current coding of the Map feature?
Offline
yes, its in there, and I'm trying to figure it out, but I'm not the best coder. I'll post it if I sort it.
Offline
okay, I got it working now, thanks....
<action name="closemap">
set(plugin[mapradar].visible,false);
hidemapspot();
set(plugin[map].onclick,openmap);
tween(plugin[map].width , 28);
tween(plugin[map].height, 40);
set(plugin[openmapbutton].visible,false);
set(plugin[closemapbutton].visible,true);
</action>
<!-- open the map -->
<action name="openmap">
if(plugin[mapradar].shouldbevisible == true, set(plugin[mapradar].visible,true)
;
set(plugin[map].onclick, closemap);
tween(plugin[map].height, 694, 0.5, easeoutquad);
tween(plugin[map].width , 497, 0.5, easeoutquad, showmapspot()
;
set(plugin[map].align, lefttop);
set(plugin[map].x , 10);
set(plugin[map].y , 10);
set(plugin[openmapbutton].visible,true);
set(plugin[closemapbutton].visible,false);
</action>
<plugin name="closemapbutton" align="bottom" customColor="true" height="prop" keep="true" onclick="openmap" onout="" onover="" url="virtualtourdata/graphics/menu/nav_tours.png" width="76" x="100" y="10"/>
<plugin name="openmapbutton" align="bottom" customColor="true" height="prop" keep="true" onclick="closemap" onout="" onover="" url="virtualtourdata/graphics/menu/nav_tours.png" width="76" x="100" y="10"/>
Offline
phensta wrote:
okay, I got it working now, thanks....
Do you have an example of its use online that we can view?
Offline
sure, its...
http://keithprowse.binarylab.com/wimbledon/
Offline
phensta wrote:
sure, its...
http://keithprowse.binarylab.com/wimbledon/
Good use of the Map and the Map button works well in the simple UI.
Offline
Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
|
CHOOSING KOLOR Why choose Kolor? Which solution to choose? Download a trial Where can I buy? Education |
SOFTWARE Autopano Pro Autopano Giga Panotour Panotour Pro XnView |
ACCESSORIES Training DVD Panobook PROJECTS Paris 26 Gigapixels Yosemite 17 Gigapixels |
COMMUNITY Forums YouTube channel Google+ |
COMPANY Blog About Kolor Resellers Contact Visit us |
PRESS Press center Press review TOOLS My account |
