Skip to content

Commit

Permalink
fix(examples): Fix issues with entwine simple loader
Browse files Browse the repository at this point in the history
  • Loading branch information
Desplandis committed Jul 26, 2023
1 parent dd8b4f0 commit ef04ac4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/entwine_simple_loader.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@

camera.position.copy(position);
camera.lookAt(lookAt);
camera.updateProjectionMatrix();

controls.options.moveSpeed = size.length();

Expand All @@ -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', {
Expand Down

0 comments on commit ef04ac4

Please sign in to comment.