Sie sind nicht angemeldet.

1

Samstag, 9. Januar 2010, 13:48

Mouse position from center point

I have used the mouse co-ordinates plug from this thread:
http://www.krpano.com/forum/wbb/index.ph…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

2

Montag, 11. Januar 2010, 11:02

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:

Quellcode

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


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

Quellcode

1
<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

3

Montag, 11. Januar 2010, 13:13

Thanks Klaus, that's perfect ! *smile*

Ähnliche Themen