![]() |
|
|
|
|
|
||||||||||
|
| User list | Rules | You are not logged in.
I have a pano where I'm using a polygon hotspot to highlight a building when a user moves their mouse over it, with a tooltip of the name of the building. I then have several hotspots on the building that I need to be able to click on to link to images.
The problem is that the polygon hotspot seems to effectively mask the other hotspots. Is there a way to make the other hotspots sit "higher" than the polygon hotspot so that they can be clicked on? Sort of as if they were on a layer above?
Thanks.
Offline
Pheliciano wrote:
I have a pano where I'm using a polygon hotspot to highlight a building when a user moves their mouse over it, with a tooltip of the name of the building. I then have several hotspots on the building that I need to be able to click on to link to images.
The problem is that the polygon hotspot seems to effectively mask the other hotspots. Is there a way to make the other hotspots sit "higher" than the polygon hotspot so that they can be clicked on? Sort of as if they were on a layer above?
Thanks.
It works for me using PTP 1.8 on Windows XP/32.
I drew the polygon hotspot first and then added point hotspots on top.
In what order did you create the hotspots? I suspect the Z-order may depoend on the order in which you create the hotspots?
Online
That works to some extent, but it's still not working reliably.
I have one pano with a polygon hotspot which has 4 regular hotspots sitting on top of it. I created the polygon hotspot first and then the regular hotspots. When I publish the tour, one of the hotspots still sits "under" the polygon hotspot, making it unusable. This is where it gets interesting. If I then delete that hotspot, recreate it and then re-publish the tour it fixes that hotspot, but moves one of the other hotspots "under" the polygon hotspot.
If I continue to delete and recreate the hotspots as they are affected, the problem simply moves around each of the hotspots one by one in the order they were created, with one hotspot always sitting under the polygon hotspot. The same occurs when I delete one hotspot so there are a total of 3 regular hotspots over the polygon hotspot. However, if I reduce that to two regular hotspots, the problem is resolved
Is there a way of forcing the z-order of hotspots to ensure that the polygon hotspot always sits at the bottom?
Offline
Pheliciano wrote:
Is there a way of forcing the z-order of hotspots to ensure that the polygon hotspot always sits at the bottom?
Did you have a look at the XML files - I expect you'll spot an attribute for Z-order.
Online
There was nothing directly in teh XML created by panotour, but I managed to fix this after checking out the XML reference page on the KRpano site.
For anyone else having this issue, you need to add zorder="n" to each hotspot tag, where n is equal to the level you want the hotspot to sit.
Thanks for the help Mediavets!
Offline
I have the same problem. Please look here on the virtual gallery.
picture number 8
Where I must add zorder="n"?
Thanks
<!--************** Hotspots und Lensflares ****************************************************-->
<hotspot name="spot0" handcursor="false" bordercolor="0xffffff" borderalpha="1" fillcolor="0xffffff" fillalpha="0.25098" bordercolorhover="0xffffff" borderalphahover="1" fillcolorhover="0xffffff" fillalphahover="0.25098" alturl="virtualtourdata/graphics/spots/spot0.png" altscale="1.0" frame="0" lastframe="19" frameheight="64" framewidth="64" altonloaded="set(crop,0|0|64|64);set(stopSequence,false);animate(spot0,0.1);" ath="86.4552" atv="1.35402" width="64" height="64">
<point ath="34.709" atv="-1.66805"/>
<point ath="138.4" atv="-1.90409"/>
<point ath="138.4" atv="4.61213"/>
<point ath="34.5103" atv="3.60996"/>
</hotspot>
<hotspot name="spot1" handcursor="false" bordercolor="0xffffff" borderalpha="1" fillcolor="0xffffff" fillalpha="0.25098" bordercolorhover="0xffffff" borderalphahover="1" fillcolorhover="0xffffff" fillalphahover="0.25098" alturl="virtualtourdata/graphics/spots/spot0.png" altscale="1.0" frame="0" lastframe="19" frameheight="64" framewidth="64" altonloaded="set(crop,0|0|64|64);set(stopSequence,false);animate(spot1,0.1);" ath="-83.4193" atv="0.0983914" width="64" height="64" onhover="showtext(acryle);">
<point ath="-149.441" atv="-2.85335"/>
<point ath="-17.3976" atv="-1.39633"/>
<point ath="-17.3976" atv="2.41185"/>
<point ath="-149.413" atv="3.05013"/>
</hotspot>
<hotspot name="spot2" onclick="closeallobjects();set(plugin[spot2object].visible,true);tween(plugin[spot2object].alpha, 1);" url="virtualtourdata/graphics/spots/spot1.jpg" onhover="showtext(le baiser);" distorted="true" ath="-141.175" atv="0.152849" width="75" height="40" rx="-0.487683" ry="51.3979" rz="0.750923"/>
<plugin name="spot2object" visible="false" url="virtualtourdata/graphics/spots/object0.jpg" align="center" alpha="0" onclick="closespot2object();" width="746" height="600"/>
<action name="closespot2object">
if(plugin[spot2object].visible,
tween(plugin[spot2object].alpha, 0);
delayedcall(0.5,set(plugin[spot2object].visible,false));
);
</action>
<hotspot name="spot3" onclick="closeallobjects();set(plugin[spot3object].visible,true);tween(plugin[spot3object].alpha, 1);" url="virtualtourdata/graphics/spots/spot2.jpg" onhover="showtext(on the road);" distorted="true" ath="-133.393" atv="0.232875" width="80" height="47" rx="0.735133" ry="41.3579" rz="-0.317696"/>
<plugin name="spot3object" visible="false" url="virtualtourdata/graphics/spots/object1.jpg" align="center" alpha="0" onclick="closespot3object();" width="896" height="600"/>
<action name="closespot3object">
if(plugin[spot3object].visible,
tween(plugin[spot3object].alpha, 0);
delayedcall(0.5,set(plugin[spot3object].visible,false));
);
Offline
panorama-reklame.de wrote:
I have the same problem. Please look here on the virtual gallery.
picture number 8
Where I must add zorder="n"?
zorder is a hotspot attribute so I think you would add these attributes along with other attributes for each hostpot.
Where"n" is an integer that determines the zorder of each hotspot.
Last edited by mediavets (2013-01-21 14:22:33)
Online
thanks mediavets, but it´s wrong. You have another idea?
Offline
thanks, now i found the error...
Last edited by panorama-reklame.de (2013-01-21 23:03:59)
Offline
panorama-reklame.de wrote:
thanks, now i founded the error...
Which was?
Online
I confused the correct number when inserting. Thanks for the help.
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 |
