@deck.gl/geo-layers 9.0.16 → 9.0.18

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "deck.gl layers supporting geospatial use cases and GIS formats",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
- "version": "9.0.16",
6
+ "version": "9.0.18",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -64,5 +64,5 @@
64
64
  "@luma.gl/core": "^9.0.0",
65
65
  "@luma.gl/engine": "^9.0.0"
66
66
  },
67
- "gitHead": "87e1629767fae5167a43dc9fa04786a16879f7aa"
67
+ "gitHead": "32f7e51eb96319739a18a3ca22092e60948fcbdb"
68
68
  }
@@ -303,18 +303,20 @@ export default class MVTLayer<
303
303
  }
304
304
  }
305
305
 
306
+ protected _isWGS84(): boolean {
307
+ return Boolean(this.context.viewport.resolution);
308
+ }
309
+
306
310
  getPickingInfo(params: GetPickingInfoParams): MVTLayerPickingInfo<FeaturePropertiesT> {
307
311
  const info = super.getPickingInfo(params);
308
312
 
309
- const isWGS84 = Boolean(this.context.viewport.resolution);
310
-
311
313
  if (this.state.binary && info.index !== -1) {
312
314
  const {data} = params.sourceLayer!.props;
313
315
  info.object = binaryToGeojson(data as BinaryFeatureCollection, {
314
316
  globalFeatureId: info.index
315
317
  }) as Feature;
316
318
  }
317
- if (info.object && !isWGS84) {
319
+ if (info.object && !this._isWGS84()) {
318
320
  info.object = transformTileCoordsToWGS84(
319
321
  info.object,
320
322
  info.tile!.bbox as GeoBoundingBox, // eslint-disable-line