[Bug] Uncaught TypeError: Cannot read properties of undefined (reading 'key') with terrain

Đang mở
#2,539 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
32/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
react, typescript
Lĩnh vực
frontend, web-dev

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện việc thu phóng nhanh hoặc pan với nguồn địa hình https://api.maptiler.com/tiles/terrain-rgb/tiles.json, vì không có sandbox được cung cấp. Đọc source_cache.ts quanh _updateRetainedTiles và update, sau đó lần theo các bên gọi trong style.ts. Hoàn tất khi việc kết xuất địa hình không còn gây ra TypeError đã báo cáo trong lúc điều hướng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug
Description

I'm getting this error when I zoom or pan quickly and terrain is present in my style. I've tried setting maxTileCacheSize to 256 to no avail. Removing the terrain object from the style stops this from happening.
The terrain source is https://api.maptiler.com/tiles/terrain-rgb/tiles.json

framebuffer_error.ts:13 Uncaught TypeError: Cannot read properties of undefined (reading 'key')
    at be._updateRetainedTiles (source_cache.ts:750:1)
    at be.update (source_cache.ts:670:1)
    at bi._updateSources (style.ts:1654:1)
    at e.Map._render (map.ts:3291:1)
    at map.ts:3453:1
    at browser.ts:22:1
Expected Behavior

The app shouldn't crash while zooming or panning while rendering 3d features

Steps to Reproduce

I'm not able to provide a code sandbox atm

Environment
Logs

framebuffer_error.ts:13 Uncaught TypeError: Cannot read properties of undefined (reading 'key')
at be._updateRetainedTiles (source_cache.ts:750:1)
at be.update (source_cache.ts:670:1)
at bi._updateSources (style.ts:1654:1)
at e.Map._render (map.ts:3291:1)
at map.ts:3453:1
at browser.ts:22:1

Ngôn ngữ chính
TypeScript
Star
8.5k
Fork
1.3k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của visgl/react-map-gl

Tất cả issue của visgl/react-map-gl

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.