Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

make vector styling async #3523

Bene44e79572ae9
diff --git a/web/js/map/ui.js b/web/js/map/ui.js
index 436bc3c9c..2782f0eb3 100644
--- a/web/js/map/ui.js
+++ b/web/js/map/ui.js
@@ -816,7 +816,9 @@ export default function mapui(models, config, store, ui) {
}
});
}
- setStyleFunction(def, vectorStyleId, vectorStyles, null, state);
+ setTimeout(() => {
+ setStyleFunction(def, vectorStyleId, vectorStyles, null, state);
+ }, 10);
}
});
updateLayerVisibilities();