Mouse position from center point

  • I have used the mouse co-ordinates plug from this thread:
    http://www.krpano.com/forum/wbb/inde…D=1212&pageNo=1
    -- which is great, but only gives an x,y position from the top left corner.

    But I'm trying to get the co-ordinates of positions on a centered popup map.

    Is there any way to adjust the above mouse position code to give a readout from align="center" edge="center" ??

    Otherwise I'm think it's back to the very tedious "make a hotspot; see co-ordinates; copy&paste data" method.

    thanks

  • Hi,

    Is there any way to adjust the above mouse position code to give a readout from align="center" edge="center" ??

    not, that's not possible,

    but what do you want to do?

    e.g. placeing spots on a map can be done in a other easier way,

    create a map plugin:

    Code
    <plugin name="map" ... />

    and then you align the "spots" within this map by using the "parent" parameter,

    Code
    <plugin name="spot1" ... parent="map" align="lefttop" edge="center" x=".." y=".." />

    and to determinate the x/y values for the spots just a measuring tool in a graphic editor,

    best regards,
    Klaus

Participate now!

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