@deck.gl/geo-layers 9.3.0-alpha.6 → 9.3.0-beta.2

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.3.0-alpha.6",
6
+ "version": "9.3.0-beta.2",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -52,8 +52,8 @@
52
52
  "@math.gl/culling": "^4.1.0",
53
53
  "@math.gl/web-mercator": "^4.1.0",
54
54
  "@types/geojson": "^7946.0.8",
55
- "a5-js": "^0.5.0",
56
- "h3-js": "^4.1.0",
55
+ "a5-js": "^0.7.2",
56
+ "h3-js": "^4.4.0",
57
57
  "long": "^3.2.0"
58
58
  },
59
59
  "peerDependencies": {
@@ -65,5 +65,5 @@
65
65
  "@luma.gl/core": "~9.3.2",
66
66
  "@luma.gl/engine": "~9.3.2"
67
67
  },
68
- "gitHead": "6aff0d4eccd01a06a388ab1c07042a94daa3eb31"
68
+ "gitHead": "f150e74afeba9a692974ba41110a5b865ac4787b"
69
69
  }
@@ -288,9 +288,12 @@ export function getTileIndices({
288
288
  visibleMinZoom?: number | null;
289
289
  visibleMaxZoom?: number | null;
290
290
  }) {
291
+ // This round/ceil operation ensures that tiles are rendered in the same way as Google Maps, Map Libre, etc.
292
+ // eg. at viewport.zoom = 9.5, you should fetch tiles at z = 10, not z = 9.
291
293
  let z = viewport.isGeospatial
292
- ? Math.round(viewport.zoom + Math.log2(TILE_SIZE / tileSize)) + zoomOffset
293
- : Math.ceil(viewport.zoom) + zoomOffset;
294
+ ? Math.round(viewport.zoom + Math.log2(TILE_SIZE / tileSize) + zoomOffset)
295
+ : Math.ceil(viewport.zoom + zoomOffset);
296
+
294
297
  if (typeof minZoom === 'number' && Number.isFinite(minZoom) && z < minZoom) {
295
298
  if (!extent) {
296
299
  return [];