You are not logged in.

1

Thursday, May 7th 2015, 6:38pm

Align a layer with hotspot

Is there any way to align a layer with a hotspot?

I have an action that opens a window (layer) when you click on the hotspot, and I would like the window to stay aligned with the hotspot when the user moves the window, almost like a child-parent relation :




Is it possible?

spacerywirtualne

Professional

Posts: 919

Location: Poland, Europe

Occupation: krpano developer : virtual tours

  • Send private message

2

Thursday, May 7th 2015, 8:22pm

Source code

1
set(layer[layerName].parent, hotspot[hotspotName]);


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

facebook page :: youtube

cms4vr team *thumbsup*

3

Thursday, May 7th 2015, 9:04pm

It works, thanks!