@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.
@@ -43,8 +43,6 @@ export type CogBitmapLayerProps = _CogBitmapLayerProps & TileLayerProps<MeshAndT
43
43
  export default class CogBitmapLayer<ExtraPropsT extends {} = {}> extends CompositeLayer<ExtraPropsT & Required<_CogBitmapLayerProps & Required<TileLayerProps<MeshAndTexture>>>> {
44
44
  static defaultProps: DefaultProps<CogBitmapLayerProps>;
45
45
  static layerName: string;
46
- minZoom: number;
47
- maxZoom: number;
48
46
  state: {
49
47
  initialized: boolean;
50
48
  isTiled?: boolean;
@@ -60,12 +60,12 @@ export default class TerrainLayer<ExtraPropsT extends {} = {}> extends Composite
60
60
  static defaultProps: DefaultProps<TerrainLayerProps>;
61
61
  static layerName: string;
62
62
  terrainUrl: string;
63
- minZoom: number;
64
- maxZoom: number;
65
63
  state: {
66
64
  isTiled?: boolean;
67
65
  terrain?: MeshAttributes;
68
66
  zRange?: ZRange | null;
67
+ minZoom: number;
68
+ maxZoom: number;
69
69
  };
70
70
  initializeState(context: any): Promise<void>;
71
71
  init(terrainUrl: string): Promise<void>;
package/dist/esm/index.js CHANGED
@@ -15741,8 +15741,8 @@ class TerrainLayer extends CompositeLayer {
15741
15741
  const cog = yield this.state.terrainCogTiles.initializeCog(this.props.elevationData);
15742
15742
  // this.tileSize = this.terrainCogTiles.getTileSize(cog);
15743
15743
  const zoomRange = this.state.terrainCogTiles.getZoomRange(cog);
15744
- [this.minZoom, this.maxZoom] = zoomRange;
15745
- this.setState({ initialized: true });
15744
+ const [minZoom, maxZoom] = zoomRange;
15745
+ this.setState({ initialized: true, minZoom, maxZoom });
15746
15746
  });
15747
15747
  }
15748
15748
  updateState({ props, oldProps }) {
@@ -15848,7 +15848,7 @@ class TerrainLayer extends CompositeLayer {
15848
15848
  }
15849
15849
  }
15850
15850
  renderLayers() {
15851
- const { color, material, elevationData, texture, wireframe, meshMaxError, elevationDecoder, tileSize, maxZoom, minZoom, extent, maxRequests, onTileLoad, onTileUnload, onTileError, maxCacheSize, maxCacheByteSize, refinementStrategy, } = this.props;
15851
+ const { color, material, elevationData, texture, wireframe, meshMaxError, elevationDecoder, tileSize, extent, maxRequests, onTileLoad, onTileUnload, onTileError, maxCacheSize, maxCacheByteSize, refinementStrategy, } = this.props;
15852
15852
  if (this.state.isTiled && this.state.initialized) {
15853
15853
  return new TileLayer(this.getSubLayerProps({
15854
15854
  id: 'tiles',
@@ -15866,8 +15866,8 @@ class TerrainLayer extends CompositeLayer {
15866
15866
  onViewportLoad: this.onViewportLoad.bind(this),
15867
15867
  zRange: this.state.zRange || null,
15868
15868
  tileSize,
15869
- maxZoom,
15870
- minZoom,
15869
+ minZoom: this.state.minZoom,
15870
+ maxZoom: this.state.maxZoom,
15871
15871
  extent,
15872
15872
  maxRequests,
15873
15873
  onTileLoad,