Sie sind nicht angemeldet.

1

Mittwoch, 19. Juni 2019, 19:29

Layer Not Showing With Keep=False

Hello there, again.

I want to add a layer that will show some information that I have stored in a DB like a picture and some text. The Layer is supposed to load dinamically in the position where I click a Hotspot.
The thing is I cannot show a layer without the "Keep=true" property. If that set to false or not set declared at all, layer wont show. But then, if I set it to true I cannot place the layer where I want it to be 'cuz it would stay fixed in the screen.

Hope you guys can help.

Regards.

Jovan.

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

2

Mittwoch, 19. Juni 2019, 20:31

There could be more things that go wrong.
Do you have a link?

Tuur *thumbsup*

3

Mittwoch, 19. Juni 2019, 22:51

I'm testing on localhost before uploading to a server so I don't have a public link.

The code I'm using for the layer is the next:


<layer name="box1" type="container" align="center" x="0" y="0" width="250" height="250" bgcolor="0x000000" alpha="1" zorder="1" autoalpha="true" parent="pano">
</layer>


So it doesn't not appear on screen unless I add the keep='true' property. This happens with all the layers inside my xml files.
I would use it this way but I need to show a little box above a Hostpot position when I click it. And if keep set to true, layer would not move to the position I want.


If something wrong what could it be or how can I check it?


Thanks for the help.


Regards.


Jovan.

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

5

Donnerstag, 20. Juni 2019, 02:12

Amazing!!!

Just the example I was looking for.
I will try that in my project.

If it's not too much to ask, is there any way to put an image inside that layer that pops on the hotspot click?

Thanks a lot for the help.

Regards.

Jovan.

6

Donnerstag, 20. Juni 2019, 06:11

For example, so.



<action name="ShowInfo">
set(layer[info],parent=hotspot[%1],html='hello world [br] [img src=[dq]skin/vtourskin_hotspot.png[dq]style=[dq]width:30px;[dq] /] [br]Cheers from %1 ');
tween(layer[info].alpha,1);
</action>

7

Freitag, 21. Juni 2019, 10:41

Thanks a lot!

I achieved what I was looking.

Excellent help.

Regards.

Jovan.