From 8dc71f966fc25c85edfe76f4880e44c43eb2486d Mon Sep 17 00:00:00 2001 From: ftoromanoff Date: Wed, 18 Dec 2024 15:20:40 +0100 Subject: [PATCH] examples(PointCloud): fix errors --- examples/entwine_3d_loader.html | 4 +++- examples/entwine_simple_loader.html | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/entwine_3d_loader.html b/examples/entwine_3d_loader.html index bc75139d36..923dca6675 100644 --- a/examples/entwine_3d_loader.html +++ b/examples/entwine_3d_loader.html @@ -87,8 +87,10 @@ eptSource = new itowns.EntwinePointTileSource({ url }); if (eptLayer) { - view.removeLayer('ept'); + debugGui.removeFolder(eptLayer.debugUI); + view.removeLayer('Entwine Point Tile'); view.notifyChange(); + eptLayer.delete(); } eptLayer = new itowns.EntwinePointTileLayer('Entwine Point Tile', { diff --git a/examples/entwine_simple_loader.html b/examples/entwine_simple_loader.html index 15e436e5e2..deb80d8924 100644 --- a/examples/entwine_simple_loader.html +++ b/examples/entwine_simple_loader.html @@ -88,7 +88,7 @@ eptSource = new itowns.EntwinePointTileSource({ url }); if (eptLayer) { - debugGUI.removeFolder(eptLayer.debugUI); + debugGui.removeFolder(eptLayer.debugUI); view.removeLayer('Entwine Point Tile'); view.notifyChange(); eptLayer.delete();