@deck.gl/geo-layers 8.6.3 → 8.7.0-alpha.3

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
@@ -2,7 +2,7 @@
2
2
  "name": "@deck.gl/geo-layers",
3
3
  "description": "deck.gl layers supporting geospatial use cases and GIS formats",
4
4
  "license": "MIT",
5
- "version": "8.6.3",
5
+ "version": "8.7.0-alpha.3",
6
6
  "publishConfig": {
7
7
  "access": "public"
8
8
  },
@@ -49,5 +49,5 @@
49
49
  "@deck.gl/mesh-layers": "^8.0.0",
50
50
  "@loaders.gl/core": "^3.0.0"
51
51
  },
52
- "gitHead": "938ee03697eecbaced24c9df637d53ab42375df1"
52
+ "gitHead": "03fd8c4caae96d66bd651cb76e11a6d05acf8f8c"
53
53
  }
@@ -25,7 +25,13 @@ const MAX_RESOLUTION = 100;
25
25
  /* Adapted from s2-geometry's S2Cell.getCornerLatLngs */
26
26
  /* eslint-disable max-statements */
27
27
  function getGeoBounds({face, ij, level}) {
28
- const offsets = [[0, 0], [0, 1], [1, 1], [1, 0], [0, 0]];
28
+ const offsets = [
29
+ [0, 0],
30
+ [0, 1],
31
+ [1, 1],
32
+ [1, 0],
33
+ [0, 0]
34
+ ];
29
35
 
30
36
  // The S2 cell edge is curved: http://s2geometry.io/
31
37
  // This is more prominent at lower levels
@@ -192,13 +192,8 @@ export default class Tile3DLayer extends CompositeLayer {
192
192
  }
193
193
 
194
194
  _makePointCloudLayer(tileHeader, oldLayer) {
195
- const {
196
- attributes,
197
- pointCount,
198
- constantRGBA,
199
- cartographicOrigin,
200
- modelMatrix
201
- } = tileHeader.content;
195
+ const {attributes, pointCount, constantRGBA, cartographicOrigin, modelMatrix} =
196
+ tileHeader.content;
202
197
  const {positions, normals, colors} = attributes;
203
198
 
204
199
  if (!positions) {
@@ -12,9 +12,23 @@ const TILE_SIZE = 512;
12
12
  // number of world copies to check
13
13
  const MAX_MAPS = 3;
14
14
  // for calculating bounding volume of a tile in a non-web-mercator viewport
15
- const REF_POINTS_5 = [[0.5, 0.5], [0, 0], [0, 1], [1, 0], [1, 1]]; // 4 corners and center
16
- const REF_POINTS_9 = REF_POINTS_5.concat([[0, 0.5], [0.5, 0], [1, 0.5], [0.5, 1]]); // 4 corners, center and 4 mid points
17
- const REF_POINTS_11 = REF_POINTS_9.concat([[0.25, 0.5], [0.75, 0.5]]); // 2 additional points on equator for top tile
15
+ const REF_POINTS_5 = [
16
+ [0.5, 0.5],
17
+ [0, 0],
18
+ [0, 1],
19
+ [1, 0],
20
+ [1, 1]
21
+ ]; // 4 corners and center
22
+ const REF_POINTS_9 = REF_POINTS_5.concat([
23
+ [0, 0.5],
24
+ [0.5, 0],
25
+ [1, 0.5],
26
+ [0.5, 1]
27
+ ]); // 4 corners, center and 4 mid points
28
+ const REF_POINTS_11 = REF_POINTS_9.concat([
29
+ [0.25, 0.5],
30
+ [0.75, 0.5]
31
+ ]); // 2 additional points on equator for top tile
18
32
 
19
33
  class OSMNode {
20
34
  constructor(x, y, z) {