Button > open/close layer [1.17.4]

  • Hello everyone!
    I'm trying to develop a standalone optimized button to open/close various layers on my projects.
    Here is the piece of code for a layer containig a floorplan:

    The code seems to works fine but I would like to ask you for any suggestion on this regard (better ways / code optimization /...) - I'm working with the 1.17.4 release...
    Thanks in advance & best, DL

  • Hi,

    you are only changing the visibility and enabled state of some elements - that will work everywhere without any problem.

    The only thing that will not work everywhere is the 'showtext' call - that's Flash-only.
    An alternative solution for tooltips that will work everywhere can be seen in the 'tooltips' example:
    https://krpano.com/examples/117/e…s/tooltips.html

    Best regards,
    Klaus

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!