Rotating parent object but not its child object

  • Hi,
    I am using the code snippet in this thread to display tooltips above a hotspot which works fine. If I rotate the hotspot through an angle the child plugin will rotate with it (see attached image).

    What I would like to do is keep the child toolip at 0 degrees regardless of the rotation of the parent hotspot. As per the attached image a hotspot can be different dimensions so I guess that may will to be accommodated. Tried various options without being able to postion the text where I want it with different angles of rotation and hotspot sizes i.e. dead centre above the hotspot

    Any suggestions?

    Thanks
    Geo

  • Hi,

    you could either rotate the children hotspot in the opposite direction,

    or use a 'empty' parent layer/hotspot where both children elements were added and stacked on each other using zorder, then rotation of one child doesn't affect the other one.

    Best regards,
    Klaus

Participate now!

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