returnToDoImageCount(); echo $toDoCount; exit(); } if (isset($_REQUEST['toDoImages'])){ header("content-type: application/json"); $toDoCount = $project->returnToDoImages(); echo $toDoCount; exit(); } if (isset($_REQUEST['returnImages'])){ header("content-type: application/json"); $toDoCount = $project->returnImages(); echo $toDoCount; exit(); } if (isset($_REQUEST['returnNotes'])){ header("content-type: application/json"); $notes = $project->returnNotes($_REQUEST['returnNotes']); exit(); } if (isset($_REQUEST['returnUserImages'])){ header("content-type: application/json"); $notes = $project->returnUserImages($_REQUEST['returnUserImages']); exit(); } if (isset($_REQUEST['lat']) && isset($_REQUEST['lng']) && isset($_REQUEST['id'])){ header("content-type: application/json"); $toDoCount = $project->savePlacement($_REQUEST['id'],$_REQUEST['lat'],$_REQUEST['lng']); exit(); } if (isset($_REQUEST['lat']) && isset($_REQUEST['lng']) && isset($_REQUEST['max'])){ header("content-type: application/json"); $project->returnNearByMarkers($_REQUEST['lat'],$_REQUEST['lng'],$_REQUEST['max']); exit(); } if (isset($_REQUEST['pov']) && isset($_REQUEST['id'])){ header("content-type: application/json"); $toDoCount = $project->savePov($_REQUEST['id'],$_REQUEST['pov']); exit(); } if (isset($_REQUEST['note']) && isset($_REQUEST['id'])){ header("content-type: application/json"); $toDoCount = $project->saveNote($_REQUEST['id'],$_REQUEST['note']); exit(); } if (isset($_REQUEST['removeItemFromMap'])){ header("content-type: application/json"); $toDoCount = $project->removeItemFromMap($_REQUEST['removeItemFromMap']); exit(); } ?>