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() {