MAPG-103 prepare to send additional data with places
This commit is contained in:
parent
138ff3fe6a
commit
199374a851
@ -84,9 +84,18 @@ class MapAdminController implements ISecured
|
|||||||
$places = [];
|
$places = [];
|
||||||
|
|
||||||
while ($place = $result->fetch(IResultSet::FETCH_ASSOC)) {
|
while ($place = $result->fetch(IResultSet::FETCH_ASSOC)) {
|
||||||
|
//$panoId = ???
|
||||||
|
//$pov = ???
|
||||||
$noPano = $place['pano_id_cached_timestamp'] && $place['pano_id_cached'] === null;
|
$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;
|
return $places;
|
||||||
|
Loading…
Reference in New Issue
Block a user