• Hi nelk,

    I have played a little around your request, and it seems that, hotspots can have more than one style attributes....
    Here a test code:


    As you can see, the hotspot has 2 style... it seems that the 2 are parsed correctly... note that inside the h_style_1 style the visible is set to false and inside the h_style_2 it is set to true... and it seems to be updated correctly too....
    Also, onclick we call a new action loadstyle() that calls a 3 style h_style_3.... it overrides the attributes sets from style h_style_2...

    I have tried also inside plugin, but it seems not to be as easy... So, I have to make more test....

    Hope this help...

    SAlut.

  • Can someone confirm, that 2 styles for one hotspot is still working? I always get a parsing failure.

    I have some hotspots with different url-attributes which are assigned by style.

    And I have attributes, which are all the same for all hotspots. And I don't wan't to write these attributes again and again for obvious reasons. E.g. if I want to change scaling for all or want to make a device differentiation for all hotspots at once...

  • Hi,

    the same attribute can't be defined two times in xml!

    See here point 6 in the xml check list:
    https://krpano.com/docu/xml/syntaxrules/#errorchecking

    But using several styles is possible, set: style="style1|style2"

    See also the documentation about this:
    https://krpano.com/docu/xml/#hotspot.style

    But when the same attribute will be defined in both styles, only the value from the latest style will be set.

    Best regards,
    Klaus

Jetzt mitmachen!

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