From 199374a851e23def6e0f49d19b2812cf13d7998c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Fri, 5 Jun 2020 00:21:36 +0200 Subject: [PATCH] MAPG-103 prepare to send additional data with places --- src/Controller/MapAdminController.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Controller/MapAdminController.php b/src/Controller/MapAdminController.php index d96f8dc..b8566e1 100644 --- a/src/Controller/MapAdminController.php +++ b/src/Controller/MapAdminController.php @@ -84,9 +84,18 @@ class MapAdminController implements ISecured $places = []; while ($place = $result->fetch(IResultSet::FETCH_ASSOC)) { + //$panoId = ??? + //$pov = ??? $noPano = $place['pano_id_cached_timestamp'] && $place['pano_id_cached'] === null; - $places[] = ['id' => $place['id'], 'lat' => $place['lat'], 'lng' => $place['lng'], 'noPano' => $noPano]; + $places[$place['id']] = [ + 'id' => $place['id'], + 'lat' => $place['lat'], + 'lng' => $place['lng'], + 'panoId' => null, + 'pov' => ['heading' => 0.0, 'pitch' => 0.0, 'zoom' => 0.0], + 'noPano' => $noPano + ]; } return $places;