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 <nabeelio@users.noreply.github.com>
This commit is contained in:
@@ -309,7 +309,7 @@ class GeoService extends Service
|
|||||||
foreach ($all_route_points as $point) {
|
foreach ($all_route_points as $point) {
|
||||||
$route->addPoint($point->lat, $point->lon, [
|
$route->addPoint($point->lat, $point->lon, [
|
||||||
'name' => $point->name,
|
'name' => $point->name,
|
||||||
'popup' => $point->name.' ('.$point->name.')',
|
'popup' => $point->name.' ('.$point->lat.', '.$point->lon.')',
|
||||||
'icon' => '',
|
'icon' => '',
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
@@ -351,7 +351,7 @@ class GeoService extends Service
|
|||||||
foreach ($planned_route as $point) {
|
foreach ($planned_route as $point) {
|
||||||
$planned->addPoint($point->lat, $point->lon, [
|
$planned->addPoint($point->lat, $point->lon, [
|
||||||
'name' => $point->name,
|
'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, [
|
$actual->addPoint($point->lat, $point->lon, [
|
||||||
'pirep_id' => $pirep->id,
|
'pirep_id' => $pirep->id,
|
||||||
'name' => $point->altitude,
|
'name' => $point->altitude,
|
||||||
'popup' => 'GS: '.$point->gs.'<br />Alt: '.$point->altitude,
|
'popup' => 'Spd: '.$point->gs.' kts<br />Alt: '.$point->altitude.' ft<br />Pos: '.$point->lat.', '.$point->lon,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user