phpvms/app/Widgets/AirspaceMap.php
2018-08-26 16:40:04 +00:00

29 lines
495 B
PHP

<?php
namespace App\Widgets;
use App\Interfaces\Widget;
/**
* Show the live map in a view
*/
class AirspaceMap extends Widget
{
protected $config = [
'height' => '800px',
'width' => '100%',
'lat' => 0,
'lon' => 0,
];
/**
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
*/
public function run()
{
return view('widgets.airspace_map', [
'config' => $this->config,
]);
}
}