| MGMap.getLastError |
|
MGError getLastError()
Returns a reference to the MGError object of the most recent Autodesk MapGuide Viewer API method call or property access.
MGError - The error object.
none
function checkError()
{
var map = getMap();
var code = map.getLastError().getCode();
alert("ERROR: " + code);
}