Ongoing development.

This commit is contained in:
David Molineus
2015-01-06 18:49:22 +01:00
parent f446c0492a
commit 3608f7cd48
15 changed files with 439 additions and 37 deletions

View File

@@ -34,8 +34,14 @@ class GeoJsonController
public function execute()
{
$collection = $this->mapService->getFeatureCollection(\Input::get('id'));
try {
$collection = $this->mapService->getFeatureCollection(\Input::get('id'));
return json_encode($collection);
header('Content-Type: application/json');
echo json_encode($collection, JSON_UNESCAPED_SLASHES);
}
catch(\Exception $e) {
header('HTTP/1.0 403 Forbidden');
}
}
}