You are not logged in.

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

1

Saturday, January 9th 2010, 1:48pm

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

Monday, January 11th 2010, 11:02am

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:

Source code

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


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

Source code

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

Monday, January 11th 2010, 1:13pm

Thanks Klaus, that's perfect ! *smile*

Similar threads