MAPG-103 implement saving on client side + server side skeleton
This commit is contained in:
1 parent
3fd37b0a78
commit
88e8c5c027
3 files changed
+87
-3
No files matched your search
@@ -49,7 +49,7 @@ class MapAdminController implements ISecured
|
||||
return new HtmlContent('admin/map_editor', $data);
|
||||
}
|
||||
|
||||
public function getPlace()
|
||||
public function getPlace(): IContent
|
||||
{
|
||||
$placeId = (int) $this->request->query('placeId');
|
||||
|
||||
@@ -59,6 +59,16 @@ class MapAdminController implements ISecured
|
||||
return new JsonContent($data);
|
||||
}
|
||||
|
||||
public function saveMap(): IContent
|
||||
{
|
||||
$mapId = (int) $this->request->query('mapId');
|
||||
|
||||
//TODO
|
||||
|
||||
$data = ['added' => []];
|
||||
return new JsonContent($data);
|
||||
}
|
||||
|
||||
private function getMapBounds(int $mapId): Bounds
|
||||
{
|
||||
$select = new Select(\Container::$dbConnection, 'maps');
|
||||
|
||||
Reference in new issue
Block a user