X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/b55b7f6127d518d2894508ba1837b71364c1768b..refs/heads/master:/Controller/SessionController.php?ds=inline diff --git a/Controller/SessionController.php b/Controller/SessionController.php index b25b19a..5552065 100644 --- a/Controller/SessionController.php +++ b/Controller/SessionController.php @@ -33,7 +33,7 @@ class SessionController extends AbstractController { /** * List all sessions * - * @desc Display all sessions with an application or login form + * Display all sessions with an application or login form * * @param Request $request The request instance * @@ -151,7 +151,7 @@ class SessionController extends AbstractController { /** * List all sessions for tango argentin * - * @desc Display all sessions in tango argentin json format + * Display all sessions in tango argentin json format * * @todo Drop it if unused by tangoargentin ??? * @@ -328,10 +328,21 @@ class SessionController extends AbstractController { } //Add map - $this->context['map'] = $this->map->getMap($this->context['session']['location']['map'], $this->modified->getTimestamp(), $this->context['session']['location']['latitude'], $this->context['session']['location']['longitude']); + #$this->context['map'] = $this->map->getMap($this->context['session']['location']['map'], $this->modified->getTimestamp(), $this->context['session']['location']['latitude'], $this->context['session']['location']['longitude']); + $this->context['map'] = $this->image->getMap($this->context['session']['location']['latitude'], $this->context['session']['location']['longitude']) + ['caption' => $this->context['session']['location']['map']]; + + //Set coordinates + $coordinates = []; + + //Iterate on each locations + foreach($this->context['locations'] as $location) { + //Add coordinates + $coordinates[] = [ $location['latitude'], $location['longitude'] ]; + } //Add multi map - $this->context['multimap'] = $this->map->getMultiMap($this->context['session']['location']['multimap'], $this->modified->getTimestamp(), $this->context['locations']); + #$this->context['multimap'] = $this->map->getMultiMap($this->context['session']['location']['multimap'], $this->modified->getTimestamp(), $this->context['locations']); + $this->context['multimap'] = $this->image->getMulti($coordinates) + ['caption' => $this->context['session']['location']['multimap']]; //Set canonical $this->context['canonical'] = $this->context['session']['canonical']; @@ -410,7 +421,7 @@ class SessionController extends AbstractController { ], $this->context['session']['location']['at'] => [ 'align' => 'right', - 'font' => 'labelleaurore', + 'font' => 'irishgrover', 'size' => 75 ] ],