@jdultra/threedtiles 6.0.0 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.js +2 -2
- package/src/tileset/OGC3DTile.js +5 -2
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -133,8 +133,8 @@ function initTileset(scene, gem) {
|
|
|
133
133
|
});
|
|
134
134
|
|
|
135
135
|
const ogc3DTile = new OGC3DTile({
|
|
136
|
-
|
|
137
|
-
url: "http://localhost:8080/tileset.json",
|
|
136
|
+
url: "https://storage.googleapis.com/ogc-3d-tiles/baltimore/tileset.json",
|
|
137
|
+
//url: "http://localhost:8080/tileset.json",
|
|
138
138
|
//url: "https://storage.googleapis.com/ogc-3d-tiles/berlinTileset/tileset.json",
|
|
139
139
|
geometricErrorMultiplier: 1,
|
|
140
140
|
loadOutsideView: false,
|
package/src/tileset/OGC3DTile.js
CHANGED
|
@@ -378,6 +378,9 @@ class OGC3DTile extends THREE.Object3D {
|
|
|
378
378
|
if (allChildrenReady) {
|
|
379
379
|
self.changeContentVisibility(false);
|
|
380
380
|
}
|
|
381
|
+
else{
|
|
382
|
+
console.log("loading...")
|
|
383
|
+
}
|
|
381
384
|
}
|
|
382
385
|
}
|
|
383
386
|
|
|
@@ -549,10 +552,10 @@ class OGC3DTile extends THREE.Object3D {
|
|
|
549
552
|
function setMeshVisibility(mesh, visibility) {
|
|
550
553
|
mesh.material.visible = visibility;
|
|
551
554
|
if (!!visibility) {
|
|
552
|
-
self.meshesToDisplay
|
|
555
|
+
self.meshesToDisplay=1;
|
|
553
556
|
mesh.onAfterRender = () => {
|
|
554
557
|
delete mesh.onAfterRender;
|
|
555
|
-
self.meshesDisplayed
|
|
558
|
+
self.meshesDisplayed=1;
|
|
556
559
|
};
|
|
557
560
|
}
|
|
558
561
|
|