@gisatcz/deckgl-geolib 1.10.2-dev.3 → 1.10.2-dev.4

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/dist/cjs/index.js CHANGED
@@ -15701,8 +15701,8 @@ class TerrainLayer extends core.CompositeLayer {
15701
15701
  return __awaiter(this, void 0, void 0, function* () {
15702
15702
  _super.initializeState.call(this, context);
15703
15703
  console.log('xxx_initializeState_terrain');
15704
- this.terrainCogTiles = new CogTiles(this.props.terrainOptions);
15705
15704
  this.setState({
15705
+ terrainCogTiles: new CogTiles(this.props.terrainOptions),
15706
15706
  initialized: false,
15707
15707
  });
15708
15708
  // XXX
@@ -15713,10 +15713,10 @@ class TerrainLayer extends core.CompositeLayer {
15713
15713
  return __awaiter(this, void 0, void 0, function* () {
15714
15714
  console.log('xxx_LAYER INITIALIZE STATE');
15715
15715
  // XXX
15716
- const cog = yield this.terrainCogTiles.initializeCog(this.props.elevationData);
15716
+ const cog = yield this.state.terrainCogTiles.initializeCog(this.props.elevationData);
15717
15717
  console.log('xxx_LAYER INITIALIZE STATE', cog);
15718
15718
  // this.tileSize = this.terrainCogTiles.getTileSize(cog);
15719
- const zoomRange = this.terrainCogTiles.getZoomRange(cog);
15719
+ const zoomRange = this.state.terrainCogTiles.getZoomRange(cog);
15720
15720
  console.log('xxx_LAYER INITIALIZE STATE', zoomRange);
15721
15721
  [this.minZoom, this.maxZoom] = zoomRange;
15722
15722
  this.setState({ initialized: true });
@@ -15818,7 +15818,7 @@ class TerrainLayer extends core.CompositeLayer {
15818
15818
  // const bounds: Bounds = [0, 100, 100, 100];
15819
15819
  // const bounds: Bounds = [tile.bbox.west, tile.bbox.south, tile.bbox.east, tile.bbox.north];
15820
15820
  // XXX
15821
- const terrain = yield this.terrainCogTiles.getTile(tile.index.x, tile.index.y, tile.index.z, bounds);
15821
+ const terrain = yield this.state.terrainCogTiles.getTile(tile.index.x, tile.index.y, tile.index.z, bounds);
15822
15822
  console.log('xxx_TILE', terrain, bounds);
15823
15823
  // const terrain = this.loadTerrain({
15824
15824
  // elevationData: dataUrl,