You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

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!