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.
@@ -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
@@ -1,5 +1,5 @@
1
1
  const conf = {
2
- version: '2.43.0'
2
+ version: '2.43.1'
3
3
  };
4
4
  export const REVISION = conf.version;
5
5
 
@@ -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() {
@@ -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, true));
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.classificationScheme;
314
+ delete options.classification;
315
315
  delete options.discreteScheme;
316
316
  delete options.applyOpacityClassication;
317
317
  delete options.size;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itowns",
3
- "version": "2.43.0",
3
+ "version": "2.43.1",
4
4
  "description": "A JS/WebGL framework for 3D geospatial data visualization",
5
5
  "type": "module",
6
6
  "main": "lib/Main.js",