From 5166fd8f184b3a9b6b58a7a50bc2da30e3574b9c Mon Sep 17 00:00:00 2001 From: Desplandis Date: Tue, 10 Sep 2024 07:42:28 +0000 Subject: [PATCH] deploy: iTowns/itowns@95d2194cbc8c5b3c399eafd76969fe4af7dcad4c --- itowns/dev/examples/copc_simple_loader.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/itowns/dev/examples/copc_simple_loader.html b/itowns/dev/examples/copc_simple_loader.html index adc29f35..7a9afb6e 100644 --- a/itowns/dev/examples/copc_simple_loader.html +++ b/itowns/dev/examples/copc_simple_loader.html @@ -109,7 +109,8 @@ pointBudget: 3000000, }); view.addLayer(layer).then(onLayerReady); - debug.PointCloudDebug.initTools(view, layer, gui); + layer.whenReady + .then(() => debug.PointCloudDebug.initTools(view, layer, gui)); } function loadAutzen() {