[ka-Map-users] coordinates

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


Hi,
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:
http://149.139.8.29/~rischio/ka-map-cvs/ka-map/htdocs/

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?
thanks
Lorenzo


More information about the ka-Map-users mailing list