From ef04ac475ae669c31cba8c6e28bde011b55dfeef Mon Sep 17 00:00:00 2001 From: Bouillaguet Quentin Date: Wed, 26 Jul 2023 10:57:13 +0200 Subject: [PATCH] fix(examples): Fix issues with entwine simple loader --- examples/entwine_simple_loader.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/entwine_simple_loader.html b/examples/entwine_simple_loader.html index 1864d854f5..0f10c4bd9d 100644 --- a/examples/entwine_simple_loader.html +++ b/examples/entwine_simple_loader.html @@ -56,6 +56,7 @@ camera.position.copy(position); camera.lookAt(lookAt); + camera.updateProjectionMatrix(); controls.options.moveSpeed = size.length(); @@ -81,8 +82,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', {