diff --git a/examples/plugins_drag_n_drop.html b/examples/plugins_drag_n_drop.html
index 7f15835ba1..f2f73361c0 100644
--- a/examples/plugins_drag_n_drop.html
+++ b/examples/plugins_drag_n_drop.html
@@ -6,7 +6,7 @@
-
+
@@ -52,7 +52,7 @@
viewerDiv = document.getElementById('viewerDiv');
viewerDiv.style.display = 'block';
- debugGui = new dat.GUI();
+ debugGui = new lil.GUI();
// TODO: do we really need to disable logarithmicDepthBuffer ?
view = new itowns.View('EPSG:3946', viewerDiv);
diff --git a/examples/potree_3d_map.html b/examples/potree_3d_map.html
index 2df2b1a1e8..25d481a221 100644
--- a/examples/potree_3d_map.html
+++ b/examples/potree_3d_map.html
@@ -32,7 +32,7 @@
-
+
@@ -46,7 +46,7 @@
viewerDiv = document.getElementById('viewerDiv');
viewerDiv.style.display = 'block';
- debugGui = new dat.GUI();
+ debugGui = new lil.GUI();
var placement = {
coord: new itowns.Coordinates('EPSG:4326', 4.631512, 43.675626),
diff --git a/examples/source_file_from_fetched_data.html b/examples/source_file_from_fetched_data.html
index 69fa79bc7d..6ed01c5960 100644
--- a/examples/source_file_from_fetched_data.html
+++ b/examples/source_file_from_fetched_data.html
@@ -6,7 +6,7 @@
-
+
diff --git a/examples/source_file_from_format.html b/examples/source_file_from_format.html
index 5cf7b2a885..d14226e7cb 100644
--- a/examples/source_file_from_format.html
+++ b/examples/source_file_from_format.html
@@ -6,7 +6,7 @@
-
+
diff --git a/examples/source_file_from_methods.html b/examples/source_file_from_methods.html
index e4223b1f46..d24d84c1fc 100644
--- a/examples/source_file_from_methods.html
+++ b/examples/source_file_from_methods.html
@@ -6,7 +6,7 @@
-
+
diff --git a/examples/source_file_from_parsed_data.html b/examples/source_file_from_parsed_data.html
index 387fd99184..3e7b871870 100644
--- a/examples/source_file_from_parsed_data.html
+++ b/examples/source_file_from_parsed_data.html
@@ -6,7 +6,7 @@
-
+
diff --git a/examples/source_file_geojson_3d.html b/examples/source_file_geojson_3d.html
index 13990d4e60..30cd323166 100644
--- a/examples/source_file_geojson_3d.html
+++ b/examples/source_file_geojson_3d.html
@@ -6,7 +6,7 @@
-
+
diff --git a/examples/source_file_geojson_raster.html b/examples/source_file_geojson_raster.html
index aee01d1316..675f26a40d 100644
--- a/examples/source_file_geojson_raster.html
+++ b/examples/source_file_geojson_raster.html
@@ -6,7 +6,7 @@
-
+
diff --git a/examples/source_file_geojson_raster_2.html b/examples/source_file_geojson_raster_2.html
index d21c5dfd13..35e278c101 100644
--- a/examples/source_file_geojson_raster_2.html
+++ b/examples/source_file_geojson_raster_2.html
@@ -6,7 +6,7 @@
-
+
diff --git a/examples/source_file_gpx_raster.html b/examples/source_file_gpx_raster.html
index 54fc0b9768..a9f7a0d328 100644
--- a/examples/source_file_gpx_raster.html
+++ b/examples/source_file_gpx_raster.html
@@ -6,7 +6,7 @@
-
+
diff --git a/examples/source_file_kml_raster.html b/examples/source_file_kml_raster.html
index 7ff9ba5207..5bdc6ccfc3 100644
--- a/examples/source_file_kml_raster.html
+++ b/examples/source_file_kml_raster.html
@@ -6,7 +6,7 @@
-
+
diff --git a/examples/source_file_kml_raster_usgs.html b/examples/source_file_kml_raster_usgs.html
index db83222b2b..248e3c8d8e 100644
--- a/examples/source_file_kml_raster_usgs.html
+++ b/examples/source_file_kml_raster_usgs.html
@@ -6,7 +6,7 @@
-
+
diff --git a/examples/source_file_shapefile.html b/examples/source_file_shapefile.html
index d77eb6eb92..277564ed0c 100644
--- a/examples/source_file_shapefile.html
+++ b/examples/source_file_shapefile.html
@@ -6,7 +6,7 @@
-
+
diff --git a/examples/source_stream_wfs_3d.html b/examples/source_stream_wfs_3d.html
index acc4ba88c2..008076cde9 100644
--- a/examples/source_stream_wfs_3d.html
+++ b/examples/source_stream_wfs_3d.html
@@ -7,7 +7,7 @@
-
+
diff --git a/examples/source_stream_wfs_raster.html b/examples/source_stream_wfs_raster.html
index 204b442738..96c0f63e51 100644
--- a/examples/source_stream_wfs_raster.html
+++ b/examples/source_stream_wfs_raster.html
@@ -7,7 +7,7 @@
-
+
diff --git a/examples/vector_tile_3d_mesh.html b/examples/vector_tile_3d_mesh.html
index 6b1ea81186..0399065d1e 100644
--- a/examples/vector_tile_3d_mesh.html
+++ b/examples/vector_tile_3d_mesh.html
@@ -9,7 +9,7 @@
-
+
diff --git a/examples/vector_tile_3d_mesh_mapbox.html b/examples/vector_tile_3d_mesh_mapbox.html
index 270f27372a..83140f34f6 100644
--- a/examples/vector_tile_3d_mesh_mapbox.html
+++ b/examples/vector_tile_3d_mesh_mapbox.html
@@ -10,7 +10,7 @@
-
+
diff --git a/examples/vector_tile_dragndrop.html b/examples/vector_tile_dragndrop.html
index 90ac847049..1a9928279d 100644
--- a/examples/vector_tile_dragndrop.html
+++ b/examples/vector_tile_dragndrop.html
@@ -7,7 +7,7 @@
-
+
diff --git a/examples/vector_tile_raster_2d.html b/examples/vector_tile_raster_2d.html
index e19408da11..ebee61e664 100644
--- a/examples/vector_tile_raster_2d.html
+++ b/examples/vector_tile_raster_2d.html
@@ -9,7 +9,7 @@
-
+
diff --git a/examples/vector_tile_raster_3d.html b/examples/vector_tile_raster_3d.html
index a753784a0e..51479581a2 100644
--- a/examples/vector_tile_raster_3d.html
+++ b/examples/vector_tile_raster_3d.html
@@ -8,7 +8,7 @@
-
+
diff --git a/examples/view_25d_map.html b/examples/view_25d_map.html
index 0ed8d0e3f8..9aba1cf043 100644
--- a/examples/view_25d_map.html
+++ b/examples/view_25d_map.html
@@ -8,7 +8,7 @@
-
+
diff --git a/examples/view_3d_map.html b/examples/view_3d_map.html
index cd3f4f17cd..9f3c1c9d17 100644
--- a/examples/view_3d_map.html
+++ b/examples/view_3d_map.html
@@ -9,7 +9,7 @@
-
+
diff --git a/examples/view_3d_mns_map.html b/examples/view_3d_mns_map.html
index dcc600e366..22729612a2 100644
--- a/examples/view_3d_mns_map.html
+++ b/examples/view_3d_mns_map.html
@@ -9,7 +9,7 @@
-
+
diff --git a/examples/view_immersive.html b/examples/view_immersive.html
index 4757f57d0d..38b9518785 100644
--- a/examples/view_immersive.html
+++ b/examples/view_immersive.html
@@ -18,7 +18,7 @@
-
+
+
diff --git a/examples/widgets_minimap.html b/examples/widgets_minimap.html
index 6ce99f6cd4..6950956579 100644
--- a/examples/widgets_minimap.html
+++ b/examples/widgets_minimap.html
@@ -13,7 +13,7 @@
can be found here : https://raw.githubusercontent.com/iTowns/itowns/master/examples/css/widgets.css -->
-
+
diff --git a/examples/widgets_navigation.html b/examples/widgets_navigation.html
index c96c6552d6..d8c6b088b9 100644
--- a/examples/widgets_navigation.html
+++ b/examples/widgets_navigation.html
@@ -13,7 +13,7 @@
can be found here : https://raw.githubusercontent.com/iTowns/itowns/master/examples/css/widgets.css -->
-
+
diff --git a/examples/widgets_scale.html b/examples/widgets_scale.html
index 22fd41c12b..e0a4516a9f 100644
--- a/examples/widgets_scale.html
+++ b/examples/widgets_scale.html
@@ -13,7 +13,7 @@
can be found here : https://raw.githubusercontent.com/iTowns/itowns/master/examples/css/widgets.css -->
-
+
diff --git a/examples/widgets_searchbar.html b/examples/widgets_searchbar.html
index 5af4a201d0..b1dd5f2a80 100644
--- a/examples/widgets_searchbar.html
+++ b/examples/widgets_searchbar.html
@@ -13,7 +13,7 @@
can be found here : https://raw.githubusercontent.com/iTowns/itowns/master/examples/css/widgets.css -->
-
+
diff --git a/test/functional/GlobeControls.js b/test/functional/GlobeControls.js
index bccf81257c..e8fa507e98 100644
--- a/test/functional/GlobeControls.js
+++ b/test/functional/GlobeControls.js
@@ -28,11 +28,8 @@ describe('GlobeControls with globe example', function _() {
};
// Hide GUI :
- debugMenu.gui.remove(cRL);
- minimap.hide();
- navigation.hide();
- searchbar.hide();
- scale.hide();
+ debugMenu.gui.close();
+ // Hide GUI :
});
middleWidth = await page.evaluate(() => window.innerWidth / 2);
diff --git a/utils/debug/Debug.js b/utils/debug/Debug.js
index 97420a456b..bbd4798911 100644
--- a/utils/debug/Debug.js
+++ b/utils/debug/Debug.js
@@ -47,6 +47,7 @@ function Debug(view, datDebugTool, chartDivContainer) {
// DEBUG CONTROLS
const gui = datDebugTool.addFolder('Debug Tools');
+ gui.close();
const state = {
displayCharts: false,
diff --git a/utils/debug/GeometryDebug.js b/utils/debug/GeometryDebug.js
index b6547bf76c..9e4c05cda8 100644
--- a/utils/debug/GeometryDebug.js
+++ b/utils/debug/GeometryDebug.js
@@ -34,6 +34,7 @@ export default {
createGeometryDebugUI(datDebugTool, view, layer) {
const gui = datDebugTool.addFolder(`Layer ${layer.id}`);
+ gui.close();
gui.add(layer, 'visible').name('Visible').onChange(() => view.notifyChange(layer));
gui.add(layer, 'opacity', 0, 1).name('Opacity').onChange(() => view.notifyChange(layer));
return gui;
diff --git a/utils/debug/PotreeDebug.js b/utils/debug/PotreeDebug.js
index 5c235e9c07..1026692afe 100644
--- a/utils/debug/PotreeDebug.js
+++ b/utils/debug/PotreeDebug.js
@@ -4,6 +4,7 @@ export default {
initTools(view, layer, datUi) {
const update = () => view.notifyChange(layer, true);
layer.debugUI = datUi.addFolder(`${layer.id}`);
+ layer.debugUI.close();
layer.debugUI.add(layer, 'visible').name('Visible').onChange(update);
layer.debugUI.add(layer, 'sseThreshold').name('SSE threshold').onChange(update);
@@ -20,6 +21,7 @@ export default {
layer.dbgDisplayParents = true;
const styleUI = layer.debugUI.addFolder('Styling');
+ styleUI.close();
if (layer.material.mode != undefined) {
styleUI.add(layer.material, 'mode', PNTS_MODE).name('Display mode').onChange(update);
styleUI.add(layer, 'maxIntensityRange', 0, 1).name('Intensity max').onChange(update);
@@ -42,6 +44,7 @@ export default {
// UI
const debugUI = layer.debugUI.addFolder('Debug');
+ debugUI.close();
debugUI.add(layer.bboxes, 'visible').name('Display Bounding Boxes').onChange(update);
debugUI.add(layer, 'dbgStickyNode').name('Sticky node name').onChange(update);
debugUI.add(layer, 'dbgDisplaySticky').name('Display sticky node').onChange(update);