Setting for how often the live map updates #1369 (#1370)

This commit is contained in:
Nabeel S 2021-12-14 12:48:21 -05:00 committed by GitHub
parent 064682b71f
commit 2202d5bf99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -137,6 +137,13 @@
options: '' options: ''
type: int type: int
description: 'Initial zoom level on the map' 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 - key: airports.default_ground_handling_cost
name: 'Default Ground Handling Cost' name: 'Default Ground Handling Cost'
group: airports group: airports

View File

@ -114,6 +114,7 @@ and being mindful of the rivets bindings
center: ['{{ $center[0] }}', '{{ $center[1] }}'], center: ['{{ $center[0] }}', '{{ $center[1] }}'],
zoom: '{{ $zoom }}', zoom: '{{ $zoom }}',
aircraft_icon: '{!! public_asset('/assets/img/acars/aircraft.png') !!}', aircraft_icon: '{!! public_asset('/assets/img/acars/aircraft.png') !!}',
refresh_interval: {{ setting('acars.update_interval', 60) }},
units: '{{ setting('units.distance') }}', units: '{{ setting('units.distance') }}',
leafletOptions: { leafletOptions: {
scrollWheelZoom: false, scrollWheelZoom: false,