itowns 2.44.3-next.2 → 2.44.3-next.3

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.
@@ -122,11 +122,13 @@ class OGC3DTilesLayer extends GeometryLayer {
122
122
  if (config.source.isOGC3DTilesIonSource) {
123
123
  this.tilesRenderer.registerPlugin(new CesiumIonAuthPlugin({
124
124
  apiToken: config.source.accessToken,
125
- assetId: config.source.assetId
125
+ assetId: config.source.assetId,
126
+ autoRefreshToken: true
126
127
  }));
127
128
  } else if (config.source.isOGC3DTilesGoogleSource) {
128
129
  this.tilesRenderer.registerPlugin(new GoogleCloudAuthPlugin({
129
- apiToken: config.source.key
130
+ apiToken: config.source.key,
131
+ autoRefreshToken: true
130
132
  }));
131
133
  }
132
134
  this.tilesRenderer.registerPlugin(new ImplicitTilingPlugin());
@@ -274,7 +276,7 @@ class OGC3DTilesLayer extends GeometryLayer {
274
276
 
275
277
  // Setup classification bufferAttribute
276
278
  if (model.isPoints) {
277
- const classificationData = batchTable?.getData('Classification');
279
+ const classificationData = batchTable?.getPropertyArray('Classification');
278
280
  if (classificationData) {
279
281
  geometry.setAttribute('classification', new THREE.BufferAttribute(classificationData, 1));
280
282
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itowns",
3
- "version": "2.44.3-next.2",
3
+ "version": "2.44.3-next.3",
4
4
  "description": "A JS/WebGL framework for 3D geospatial data visualization",
5
5
  "type": "module",
6
6
  "main": "lib/Main.js",
@@ -61,7 +61,7 @@
61
61
  "@mapbox/vector-tile": "^2.0.3",
62
62
  "@tmcw/togeojson": "^5.8.1",
63
63
  "@tweenjs/tween.js": "^25.0.0",
64
- "3d-tiles-renderer": "^0.3.37",
64
+ "3d-tiles-renderer": "^0.3.38",
65
65
  "brotli-compress": "^1.3.3",
66
66
  "copc": "^0.0.6",
67
67
  "earcut": "^3.0.0",