Sie sind nicht angemeldet.

ruffzy

Anfänger

  • »ruffzy« ist der Autor dieses Themas

Beiträge: 5

Wohnort: Einsiedeln, Switzerland

  • Nachricht senden

1

Freitag, 22. November 2019, 11:05

zorder not working between different Hotspots

Hi all

I am currently creating a pano which has multiple hotspots. When you move the mouse on one hotspot a layer is shown which gives more information about the spot. This is actually working finde.

Pls check out the pano here: https://www.enio.ch/custom/lapala/index.html

However the problem is that when the information layer for a hotspot is shown that some of the other hotspots are not covered by the layer. Pls check out the image here: https://download.enio.ch/DBKNOJRO/2019-1…e-Weg Flums.png

When I check out the z-order of the objects in html everything should actually be okey. It seems that for some hotspots the z-order relatively to each other is just ignored.

Can someone pls give me a hint?

kind regards, marco

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

2

Freitag, 22. November 2019, 12:14

hello Marco

try add onover zorder+ and onout zorder-

Quellcode

1
2
str += "set(hotspot[" + spotname + "].onover,add(zorder,10);hotspot_over(" + spotname + "));";
str += "set(hotspot[" + spotname + "].onout,sub(zorder,10);hotspot_out(" + spotname + "));";


I haven't tested this code but I use it successfully

Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

ruffzy

Anfänger

  • »ruffzy« ist der Autor dieses Themas

Beiträge: 5

Wohnort: Einsiedeln, Switzerland

  • Nachricht senden

3

Samstag, 23. November 2019, 13:33

Hi Piotr

Yes indeed that helped a bit. After loading the panorama fresh it is working just fine. But after playing around a bit suddenly the issue occurs again.

Is zorder a global variable which is used when ever I create a new layer object?

Kind regards,
marco

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

4

Samstag, 23. November 2019, 19:07

Is zorder a global variable which is used when ever I create a new layer object?
The zorder value is assigned to an element such as layer or hotspot.
Yes indeed that helped a bit. After loading the panorama fresh it is working just fine. But after playing around a bit suddenly the issue occurs again.

This code should be more reliable. Test it.

Quellcode

1
str += "set(hotspot[" + spotname + "].onloaded,asyncloop(hovering, add(zorder,10), sub(zorder,10)));";


Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*