mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +00:00
make sure ui and map (extent) are properly loaded when setting background
This commit is contained in:
@@ -548,7 +548,6 @@ export function coreContext() {
|
||||
|
||||
// kick off some async work
|
||||
localizer.ensureLoaded();
|
||||
_background.ensureLoaded();
|
||||
presetManager.ensureLoaded();
|
||||
|
||||
Object.values(services).forEach(service => {
|
||||
@@ -574,6 +573,7 @@ export function coreContext() {
|
||||
if (!context.container().empty()) {
|
||||
_ui.ensureLoaded()
|
||||
.then(() => {
|
||||
_background.ensureLoaded();
|
||||
_photos.init();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user