switch() hotspot.style ?

  • I'd like to be able to switch() the style of a hotspot onclick.
    This seems problematic since....

    Quote

    Note - the attributes that were defined in a style can NOT be overwritten in the plugin / hotspots definition!

    I can change the style of a hotspot via hotspot.loadstyle() but I can't seem to be able to figure this one out.
    Any ideas or suggestions?

  • Hi,

    with the "style" attribute it is only possible to set the name of <style> tag from the xml,
    and when the <plugin> or <hotspot> element will be created internally then all attributes from the given <style> element will be copied to the current <plugin> or <hotpot> element,

    that means there is no real interactive relation - the attributes from the style were just copied once,
    the same will happen when calling "loadstyle",

    removing loaded style - which would mean restoring the previous attributes and removing new set attributes is not possible,

    the idea of the <style> tag is the reduce the amount of code in the xml by collecting the code that would be the same for a lot of plugin or hotspot elements,

    best regards,
    Klaus

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!