[ka-Map-users] coordinates

Lorenzo Becchi lorenzo at ominiverdi.com
Mon Aug 1 12:33:30 EDT 2005

I'm trying to trace mouse coordinates with kaMap CVS.
I have no problems with local coordinates but big ones when I try to
use: kaMap_pixToGeo and other functions that use xOrigin and yOrigin.
it seems initialization doesn't set this parameters.

test is here:

on double click function (kaNavigator_ondblclick) I've put this code to
show absolute coordinates below the scalebar.
    var geoCoo = kaMap_pixToGeo(dx,dy);
    var gpX = geoCoo[0];
    var gpY = geoCoo[1];

//     	Show x coordinates
        var span = getRawObject('x-position');
	span.innerHTML = gpX;

//   	Show y coordinates
	var span = getRawObject('y-position');
	span.innerHTML = gpY;
any suggestions?

More information about the ka-Map-users mailing list