2018-03-28 00:40:37 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Widgets;
|
|
|
|
|
2019-07-16 03:44:31 +08:00
|
|
|
use App\Contracts\Widget;
|
2018-03-28 00:40:37 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Show the live map in a view
|
|
|
|
*/
|
|
|
|
class AirspaceMap extends Widget
|
|
|
|
{
|
|
|
|
protected $config = [
|
|
|
|
'height' => '800px',
|
|
|
|
'width' => '100%',
|
2018-08-27 00:40:04 +08:00
|
|
|
'lat' => 0,
|
|
|
|
'lon' => 0,
|
2018-03-28 00:40:37 +08:00
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
|
|
|
*/
|
|
|
|
public function run()
|
|
|
|
{
|
|
|
|
return view('widgets.airspace_map', [
|
2018-08-27 00:40:04 +08:00
|
|
|
'config' => $this->config,
|
2018-03-28 00:40:37 +08:00
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|