You are not logged in.

Dear visitor, welcome to 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.


Saturday, November 3rd 2018, 2:14pm

Rotating parent object but not its child object

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?

GeoK has attached the following image:
  • rotatedhotspots.jpg


Monday, November 5th 2018, 12:44pm


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,