itowns 2.43.0 → 2.43.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/changelog.md +16 -0
- package/dist/itowns.js +1 -1
- package/dist/itowns.js.map +1 -1
- package/examples/3dtiles_pointcloud.html +1 -3
- package/lib/Main.js +1 -1
- package/lib/Parser/LASLoader.js +1 -1
- package/lib/Parser/PntsParser.js +1 -1
- package/lib/Renderer/PointsMaterial.js +1 -1
- package/package.json +1 -1
|
@@ -76,10 +76,8 @@
|
|
|
76
76
|
itowns.View.prototype.addLayer.call(view, $3dTilesLayerSetePC);
|
|
77
77
|
function switchMode(){
|
|
78
78
|
let pntsLayer = view.getLayerById("3d-tiles-sete");
|
|
79
|
-
|
|
80
79
|
if(pntsLayer){
|
|
81
|
-
pntsLayer = pntsLayer;
|
|
82
|
-
pntsLayer.pntsMode = pntsLayer.pntsMode == itowns.PNTS_MODE.COLOR ? itowns.PNTS_MODE.CLASSIFICATION : itowns.PNTS_MODE.COLOR;
|
|
80
|
+
pntsLayer.pntsMode = pntsLayer.pntsMode === itowns.PNTS_MODE.COLOR ? itowns.PNTS_MODE.CLASSIFICATION : itowns.PNTS_MODE.COLOR;
|
|
83
81
|
view.notifyChange(view.camera3D);
|
|
84
82
|
}
|
|
85
83
|
}
|
package/lib/Main.js
CHANGED
package/lib/Parser/LASLoader.js
CHANGED
|
@@ -26,7 +26,7 @@ import { Las } from 'copc';
|
|
|
26
26
|
*/
|
|
27
27
|
class LASLoader {
|
|
28
28
|
constructor() {
|
|
29
|
-
this._wasmPath = 'https://cdn.jsdelivr.net/npm/laz-perf@0.0.6/lib
|
|
29
|
+
this._wasmPath = 'https://cdn.jsdelivr.net/npm/laz-perf@0.0.6/lib';
|
|
30
30
|
this._wasmPromise = null;
|
|
31
31
|
}
|
|
32
32
|
_initDecoder() {
|
package/lib/Parser/PntsParser.js
CHANGED
|
@@ -125,7 +125,7 @@ function setClassification(point, batchTable) {
|
|
|
125
125
|
return;
|
|
126
126
|
}
|
|
127
127
|
if (batchTable.content && batchTable.content.Classification) {
|
|
128
|
-
point.geometry.setAttribute('classification', new THREE.BufferAttribute(new Uint8Array(batchTable.content.Classification), 1
|
|
128
|
+
point.geometry.setAttribute('classification', new THREE.BufferAttribute(new Uint8Array(batchTable.content.Classification), 1));
|
|
129
129
|
}
|
|
130
130
|
return point;
|
|
131
131
|
}
|
|
@@ -311,7 +311,7 @@ class PointsMaterial extends THREE.ShaderMaterial {
|
|
|
311
311
|
delete options.elevationRange;
|
|
312
312
|
delete options.angleRange;
|
|
313
313
|
delete options.orientedImageMaterial;
|
|
314
|
-
delete options.
|
|
314
|
+
delete options.classification;
|
|
315
315
|
delete options.discreteScheme;
|
|
316
316
|
delete options.applyOpacityClassication;
|
|
317
317
|
delete options.size;
|