update livemap to use rivets.js bindings for data updates

This commit is contained in:
Nabeel Shahzad
2018-05-03 15:07:16 -05:00
parent cbb5182cea
commit 23f1a8225a
21 changed files with 557 additions and 321 deletions

View File

@@ -19,6 +19,8 @@ class Pirep extends Resource
{
$pirep = parent::toArray($request);
$pirep['ident'] = $this->ident;
if ($this->distance instanceof Distance) {
$pirep['distance'] = $this->distance->units;
}