@deck.gl/geo-layers 9.0.17 → 9.0.19

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/dist.dev.js CHANGED
@@ -25894,16 +25894,18 @@ void main(void) {
25894
25894
  });
25895
25895
  }
25896
25896
  }
25897
+ _isWGS84() {
25898
+ return Boolean(this.context.viewport.resolution);
25899
+ }
25897
25900
  getPickingInfo(params) {
25898
25901
  const info = super.getPickingInfo(params);
25899
- const isWGS842 = Boolean(this.context.viewport.resolution);
25900
25902
  if (this.state.binary && info.index !== -1) {
25901
25903
  const { data } = params.sourceLayer.props;
25902
25904
  info.object = binaryToGeojson(data, {
25903
25905
  globalFeatureId: info.index
25904
25906
  });
25905
25907
  }
25906
- if (info.object && !isWGS842) {
25908
+ if (info.object && !this._isWGS84()) {
25907
25909
  info.object = transformTileCoordsToWGS84(
25908
25910
  info.object,
25909
25911
  info.tile.bbox,
package/dist/index.cjs CHANGED
@@ -2951,16 +2951,18 @@ var _MVTLayer = class extends TileLayer {
2951
2951
  });
2952
2952
  }
2953
2953
  }
2954
+ _isWGS84() {
2955
+ return Boolean(this.context.viewport.resolution);
2956
+ }
2954
2957
  getPickingInfo(params) {
2955
2958
  const info = super.getPickingInfo(params);
2956
- const isWGS84 = Boolean(this.context.viewport.resolution);
2957
2959
  if (this.state.binary && info.index !== -1) {
2958
2960
  const { data } = params.sourceLayer.props;
2959
2961
  info.object = (0, import_gis.binaryToGeojson)(data, {
2960
2962
  globalFeatureId: info.index
2961
2963
  });
2962
2964
  }
2963
- if (info.object && !isWGS84) {
2965
+ if (info.object && !this._isWGS84()) {
2964
2966
  info.object = transformTileCoordsToWGS84(
2965
2967
  info.object,
2966
2968
  info.tile.bbox,