From 6eef246b6a52437fcd3af3df89c47728abac926f Mon Sep 17 00:00:00 2001 From: "B.Fatih KOZ" Date: Mon, 30 Aug 2021 20:00:27 +0300 Subject: [PATCH] Improve Map features (GeoJson) (#1290) * Update GeoService.php Replace double name usage with more valuable info * Update GeoService.php Changed `GS` with `Spd` 'cause it may be IAS or GS according to the phase of the flight. Co-authored-by: Nabeel S --- app/Services/GeoService.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Services/GeoService.php b/app/Services/GeoService.php index b6a8c796..fe868763 100644 --- a/app/Services/GeoService.php +++ b/app/Services/GeoService.php @@ -309,7 +309,7 @@ class GeoService extends Service foreach ($all_route_points as $point) { $route->addPoint($point->lat, $point->lon, [ 'name' => $point->name, - 'popup' => $point->name.' ('.$point->name.')', + 'popup' => $point->name.' ('.$point->lat.', '.$point->lon.')', 'icon' => '', ]); } @@ -351,7 +351,7 @@ class GeoService extends Service foreach ($planned_route as $point) { $planned->addPoint($point->lat, $point->lon, [ 'name' => $point->name, - 'popup' => $point->name.' ('.$point->name.')', + 'popup' => $point->name.' ('.$point->lat.', '.$point->lon.')', ]); } @@ -369,7 +369,7 @@ class GeoService extends Service $actual->addPoint($point->lat, $point->lon, [ 'pirep_id' => $pirep->id, 'name' => $point->altitude, - 'popup' => 'GS: '.$point->gs.'
Alt: '.$point->altitude, + 'popup' => 'Spd: '.$point->gs.' kts
Alt: '.$point->altitude.' ft
Pos: '.$point->lat.', '.$point->lon, ]); }