itowns 2.43.2-next.19 → 2.43.2-next.20
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.
|
@@ -134,7 +134,7 @@ class PointCloudLayer extends GeometryLayer {
|
|
|
134
134
|
*/
|
|
135
135
|
constructor(id) {
|
|
136
136
|
let config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
137
|
-
super(id, new THREE.Group(), config);
|
|
137
|
+
super(id, config.object3d || new THREE.Group(), config);
|
|
138
138
|
this.isPointCloudLayer = true;
|
|
139
139
|
this.protocol = 'pointcloud';
|
|
140
140
|
this.group = config.group || new THREE.Group();
|
|
@@ -67,7 +67,7 @@ class TiledGeometryLayer extends GeometryLayer {
|
|
|
67
67
|
// TODO : this should be add in a preprocess method specific to GeoidLayer.
|
|
68
68
|
this.object3d.geoidHeight = 0;
|
|
69
69
|
this.protocol = 'tile';
|
|
70
|
-
this._hideSkirt =
|
|
70
|
+
this._hideSkirt = !!config.hideSkirt;
|
|
71
71
|
this.sseSubdivisionThreshold = this.sseSubdivisionThreshold || 1.0;
|
|
72
72
|
this.schemeTile = schemeTile;
|
|
73
73
|
this.builder = builder;
|
|
@@ -94,6 +94,9 @@ class TiledGeometryLayer extends GeometryLayer {
|
|
|
94
94
|
return this._hideSkirt;
|
|
95
95
|
}
|
|
96
96
|
set hideSkirt(value) {
|
|
97
|
+
if (!this.level0Nodes) {
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
97
100
|
this._hideSkirt = value;
|
|
98
101
|
for (const node of this.level0Nodes) {
|
|
99
102
|
node.traverse(obj => {
|