I am working on the following code. I'm trying to find out why I am getting this error:
The Points undefined
on processMap()
?
var mapPoints = function(model, viewSetting) {
ajax(_workSpace.rootPath + 'Map/MapPoints', { }, function (result) {
console.log('headMapOrders callback ', result);
if (result.ReturnCode == 0) {
UIPopup.showOk(result.ReturnMessage, resources.app_error);
} else {}
return;
});
}
function processMap()
{
var thepoints = mapPoints();
console.log("The Points", thepoints);
}
processMap();