Refactoring: fix background layer switch and hotkeys

This commit is contained in:
Pieter Vander Vennet 2023-04-21 17:37:50 +02:00
parent c2b9a81c51
commit 23b26c4197
5 changed files with 44 additions and 64 deletions

View file

@ -343,7 +343,7 @@ export class MapLibreAdaptor implements MapProperties, ExportableMap {
// already the correct background layer, nothing to do
return
}
await this.awaitStyleIsLoaded()
// await this.awaitStyleIsLoaded()
if (background !== this.rasterLayer?.data?.properties) {
// User selected another background in the meantime... abort