diff --git a/app/Database/seeds/settings.yml b/app/Database/seeds/settings.yml index 168f4771..286b2adb 100644 --- a/app/Database/seeds/settings.yml +++ b/app/Database/seeds/settings.yml @@ -137,6 +137,13 @@ options: '' type: int description: 'Initial zoom level on the map' +- key: acars.update_interval + name: 'Default Zoom' + group: acars + value: 60 + options: '' + type: int + description: 'How often the live map updates its data' - key: airports.default_ground_handling_cost name: 'Default Ground Handling Cost' group: airports diff --git a/resources/views/layouts/default/widgets/live_map.blade.php b/resources/views/layouts/default/widgets/live_map.blade.php index 278ce96f..30622c9f 100644 --- a/resources/views/layouts/default/widgets/live_map.blade.php +++ b/resources/views/layouts/default/widgets/live_map.blade.php @@ -114,6 +114,7 @@ and being mindful of the rivets bindings center: ['{{ $center[0] }}', '{{ $center[1] }}'], zoom: '{{ $zoom }}', aircraft_icon: '{!! public_asset('/assets/img/acars/aircraft.png') !!}', + refresh_interval: {{ setting('acars.update_interval', 60) }}, units: '{{ setting('units.distance') }}', leafletOptions: { scrollWheelZoom: false,