Skip to content

Commit

Permalink
fix(examples): fix some issues with entwine planar example
Browse files Browse the repository at this point in the history
  • Loading branch information
Desplandis authored and jailln committed Feb 14, 2024
1 parent 1cb36a7 commit 7d05a0f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions examples/entwine_simple_loader.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,14 @@

view.camera3D.far = 2.0 * size.length();

var position = eptLayer.root.bbox.min.clone().add(size.multiply({ x: 0, y: 0, z: size.x / size.z }));
controls.groundLevel = eptLayer.root.bbox.min.z;
var position = eptLayer.root.bbox.min.clone().add(
size.multiply({ x: 0, y: 0, z: size.x / size.z })
);

view.camera3D.position.copy(position);
view.camera3D.lookAt(lookAt);
view.camera3D.updateProjectionMatrix();

view.notifyChange(view.camera3D);
}
Expand All @@ -77,8 +81,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 7d05a0f

Please sign in to comment.