|
@@ -2818,9 +2818,9 @@ class GeoJsonController
|
2818
|
2818
|
$params = RequestUtils::getParams($request);
|
2819
|
2819
|
if (strpos($id, ',') !== false) {
|
2820
|
2820
|
$ids = explode(',', $id);
|
2821
|
|
- $result = [];
|
|
2821
|
+ $result = (object) array('type' => 'FeatureCollection', 'features' => array());
|
2822
|
2822
|
for ($i = 0; $i < count($ids); $i++) {
|
2823
|
|
- array_push($result, $this->service->read($table, $ids[$i], $params));
|
|
2823
|
+ array_push($result->features, $this->service->read($table, $ids[$i], $params));
|
2824
|
2824
|
}
|
2825
|
2825
|
return $this->responder->success($result);
|
2826
|
2826
|
} else {
|