From a6ef29f96ac59ee5b01b959a6fa52edb1ab8560f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Sat, 5 Dec 2026 04:24:14 +0100 Subject: [PATCH] Replace map getMap by image getMap function call Replace map getMultiMap by image getMulti function call --- Controller/SessionController.php | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/Controller/SessionController.php b/Controller/SessionController.php index b2dde1d..5552065 100644 --- a/Controller/SessionController.php +++ b/Controller/SessionController.php @@ -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 ] ], -- 2.52.1