X-Git-Url: https://dev.renevier.net/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=application%2Fcontrollers%2FGeomController.php;h=0c399fedd89684f989e17bb860b4e62222117351;hb=1f6105289a49079809c2a4677b561bc82c62db88;hp=3f14df907137d7cbab2ec8a83f695ba3d140b653;hpb=c18437388d1810a4f7e8f692d748473feeaebe00;p=syj.git diff --git a/application/controllers/GeomController.php b/application/controllers/GeomController.php index 3f14df9..0c399fe 100644 --- a/application/controllers/GeomController.php +++ b/application/controllers/GeomController.php @@ -1,5 +1,5 @@ (string)$path->geom, - 'title' => (string)$path->displayTitle); + $data = json_decode($path->geom->toGeoJSON()); + $data->title = (string)$path->displayTitle; if ($path->creator) { - $data['creator'] = (string)$path->creator->pseudo; + $data->creator = (string)$path->creator->pseudo; } $api = $this->_helper->SyjApi; $api->setCheckIfNoneMatch(true)->setBodyJson($data);