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.

jeromebg

Professional

  • "jeromebg" started this thread

Posts: 822

Location: Angers - France

Occupation: Photographer

  • Send private message

1

Saturday, January 16th 2016, 2:15pm

removelayer container

When removing a container layer (removelayer(mycontainer)) it doesn't removes layers inside the container.
Could be cool to remove everything inside too ?

Tuur

Sage

Posts: 3,281

Location: Netherlands

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

  • Send private message

2

Saturday, January 16th 2016, 4:45pm

But the container is not really persé a container in this way.
It is just a layer but not textfield or graphic.

The ...> blabla </layer>
Makes it nested layers. No need for layer type container.

What would be nice is
removelayernest(nestparentlayername);

Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

Posts: 1,852

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

3

Saturday, January 16th 2016, 11:12pm

or removetree() since hotspots can have children too.
:)
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

4

Tuesday, January 19th 2016, 9:54pm

Hi,

in the next 1.19 version (should be also already in 1.19-pr3) the removelayer() actions supports a second parameter 'removechildren' - when it will be set to 'true', then all children elements will be automatically removed too.

Best regards,
Klaus

Tuur

Sage

Posts: 3,281

Location: Netherlands

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

  • Send private message

5

Wednesday, January 20th 2016, 9:21am

*thumbsup* *g*
Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

Tuur

Sage

Posts: 3,281

Location: Netherlands

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

  • Send private message

6

Monday, September 4th 2017, 6:17pm

Hi Klaus,

there seems to be a problem with the second placeholder to remove all children elements .. the problem is only in IE windows 11.
removing the children separate fixed the problem.

EDIT: after the removehotspot(bla, true); i do directly a zoomto action.
It looks like IE doesn't clean up all child layers fully.
In this particular case this hotspots has 3 child layers.. Maybe because i say remove hotspot, it doesn't clean the layers?

Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

This post has been edited 1 times, last edit by "Tuur" (Sep 5th 2017, 1:45pm)


7

Monday, September 11th 2017, 9:33am

Hi,

Quoted

EDIT: after the removehotspot(bla, true); i do directly a zoomto action.
It looks like IE doesn't clean up all child layers fully.
In this particular case this hotspots has 3 child layers.. Maybe because i say remove hotspot, it doesn't clean the layers?

Yes - the removehotspot action doesn't support removing children layers yet - see:
https://krpano.com/docu/actions/#removehotspot

Best regards,
Klaus

Tuur

Sage

Posts: 3,281

Location: Netherlands

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

  • Send private message

8

Monday, September 11th 2017, 12:49pm

Ah yes.
sorry, i didn't look there. I just assumed it was working.
Hope it will soon.

Cheers!
Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur