Ongoing development.

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

No files matched your search

@@ -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');
}
}
}