@gisatcz/deckgl-geolib 1.11.0-dev.9 → 1.11.1-dev.0

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
@@ -15743,8 +15743,8 @@ class TerrainLayer extends core.CompositeLayer {
15743
15743
  const cog = yield this.state.terrainCogTiles.initializeCog(this.props.elevationData);
15744
15744
  // this.tileSize = this.terrainCogTiles.getTileSize(cog);
15745
15745
  const zoomRange = this.state.terrainCogTiles.getZoomRange(cog);
15746
- [this.minZoom, this.maxZoom] = zoomRange;
15747
- this.setState({ initialized: true });
15746
+ const [minZoom, maxZoom] = zoomRange;
15747
+ this.setState({ initialized: true, minZoom, maxZoom });
15748
15748
  });
15749
15749
  }
15750
15750
  updateState({ props, oldProps }) {
@@ -15850,7 +15850,7 @@ class TerrainLayer extends core.CompositeLayer {
15850
15850
  }
15851
15851
  }
15852
15852
  renderLayers() {
15853
- const { color, material, elevationData, texture, wireframe, meshMaxError, elevationDecoder, tileSize, maxZoom, minZoom, extent, maxRequests, onTileLoad, onTileUnload, onTileError, maxCacheSize, maxCacheByteSize, refinementStrategy, } = this.props;
15853
+ const { color, material, elevationData, texture, wireframe, meshMaxError, elevationDecoder, tileSize, extent, maxRequests, onTileLoad, onTileUnload, onTileError, maxCacheSize, maxCacheByteSize, refinementStrategy, } = this.props;
15854
15854
  if (this.state.isTiled && this.state.initialized) {
15855
15855
  return new geoLayers.TileLayer(this.getSubLayerProps({
15856
15856
  id: 'tiles',
@@ -15868,8 +15868,8 @@ class TerrainLayer extends core.CompositeLayer {
15868
15868
  onViewportLoad: this.onViewportLoad.bind(this),
15869
15869
  zRange: this.state.zRange || null,
15870
15870
  tileSize,
15871
- maxZoom,
15872
- minZoom,
15871
+ minZoom: this.state.minZoom,
15872
+ maxZoom: this.state.maxZoom,
15873
15873
  extent,
15874
15874
  maxRequests,
15875
15875
  onTileLoad,