[mapguide-users] Re: Using DigitizePoint(handler) Errors

Jackie Ng jumpinjackie at gmail.com
Thu Nov 4 01:18:14 EDT 2010


The handler in DigitizePoint(handler) is not a point, it is a function that
accepts a point parameter (the point that was digitized.

So your code should look something like this:

function OnPointDigitized(p)
{
    document.write(p.x); 
    document.write(p.y); 
}

function getPoint() { 
    opener.top.showMap.mapFrame.DigitizePoint(OnPointDigitized); //the
structure 
}


- Jackie

-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Using-DigitizePoint-handler-Errors-tp5704197p5704213.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list