Add minmaxZoomDistance settings

This commit is contained in:
Lukas Rieger (Blue) 2022-08-12 18:08:34 +02:00
parent 9b137de8bd
commit ad82eb61d2
No known key found for this signature in database
GPG Key ID: 2D09EC5ED2687FF2
2 changed files with 5 additions and 1 deletions

@ -1 +1 @@
Subproject commit d12c48275f168dbbf05be92c7c46667a8487f5ca
Subproject commit d9ffe6453fc17e8a623f4446aa164edc80949ff2

View File

@ -58,6 +58,8 @@ export class BlueMapApp {
* useCookies: boolean,
* enableFreeFlight: boolean,
* resolutionDefault: number,
* minZoomDistance: number,
* maxZoomDistance: number,
* hiresSliderMax: number,
* hiresSliderDefault: number,
* hiresSliderMin: number,
@ -121,6 +123,8 @@ export class BlueMapApp {
// load settings
await this.getSettings();
this.mapControls.minDistance = this.settings.minZoomDistance;
this.mapControls.maxDistance = this.settings.maxZoomDistance;
this.appState.controls.enableFreeFlight = this.settings.enableFreeFlight;
// unload loaded maps