adds toggle hotkeys to map

This commit is contained in:
Christian Beutel
2025-03-29 15:31:34 +01:00
parent 693302600c
commit 88f6d6e67c
3 changed files with 36 additions and 13 deletions

View File

@@ -72,7 +72,7 @@ export class ElevationProfileControl implements IControl {
this.settings = { ...options };
}
toggleTheme(options: ElevationProfileControlOptions) {
toggleTheme(options: ElevationProfileControlOptions) {
this.settings = { ...this.settings, ...options };
this.elevationProfileChart?.toggleTheme(this.settings)
}
@@ -169,7 +169,7 @@ export class ElevationProfileControl implements IControl {
return this.buttonContainer;
}
private toggleProfile() {
toggleProfile() {
if (!this.profileContainer) return;
if (this.isProfileShown) {