]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Controller/SessionController.php
Version 0.6.1
[airbundle] / Controller / SessionController.php
index b2dde1d58b630b37f6c8f15bc4347987537e1733..555206552f91eca29ebb0e6a9bff7aff6fa26631 100644 (file)
@@ -328,10 +328,21 @@ class SessionController extends AbstractController {
                }
 
                //Add map
                }
 
                //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
 
                //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'];
 
                //Set canonical
                $this->context['canonical'] = $this->context['session']['canonical'];
@@ -410,7 +421,7 @@ class SessionController extends AbstractController {
                                ],
                                $this->context['session']['location']['at'] => [
                                        'align' => 'right',
                                ],
                                $this->context['session']['location']['at'] => [
                                        'align' => 'right',
-                                       'font' => 'labelleaurore',
+                                       'font' => 'irishgrover',
                                        'size' => 75
                                ]
                        ],
                                        'size' => 75
                                ]
                        ],