[Bug] Map is distorted when reuseMaps is true
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- react, typescript
調査の方向性
[email protected] と Map library 3.18.0 を使用した、リンク先の CodeSandbox の再現手順から始めます。必要な Mapbox トークンを追加し、パンとズームの後に reuseMaps の unmount/remount パスをたどります。remount 前後のマップの描画を比較し、繰り返し切り替えてもマップが歪んだり、タイルの読み込みが妨げられたりしないことを確認します。
索引モデルが issue の本文から書いたものです。
説明
Description
The map renders correctly on the initial load (see Image 1). However, the map becomes distorted or fails to load tiles properly (see Image 2) when the component is unmounted and remounted while the reuseMaps property is enabled. It appears as though the map container dimensions or tile coordinates are not being recalculated correctly upon re-insertion into the DOM.
The issue can be reproduced here (the mapbox token need to add): https://codesandbox.io/p/sandbox/reactjs-playground-forked-n5nfrk
Expected Behavior
The map must work well even after remount with reuseMap as true
Steps to Reproduce
- Load the map and perform pan (drag) and zoom actions.
- Click the "Toggle Map" button to unmount the component.
- Click the "Toggle Map" button again to remount the component.
- Observe the distorted map. (Note: If it doesn't happen immediately, repeat the steps 2-3 times, ensuring you interact with the map between toggles).
The issue can be reproduced here (the mapbox token need to add): https://codesandbox.io/p/sandbox/reactjs-playground-forked-n5nfrk
Environment
- Framework version: [email protected]
- Map library: 3.18.0
- Browser: Chrome
- OS: Mac
Logs
No response
- 主要言語
- TypeScript
- スター
- 8.5k
- フォーク
- 1.3k
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
visgl/react-map-gl のほかの issue
-
DEFAULT_SETTINGS.maxBounds in @vis.gl/react-maplibre has 360° longitude span, triggers maplibre-gl-js#6148 crash via _updateSettings fallback再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
visgl/react-map-gl#2591 · コメント 2 件 ·
-
[Bug] Mapbox geocoder example crashes: "i is not a function"対応中かも @yuiseki が 20 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
visgl/react-map-gl#2628 ·
-
[Bug] Scroll zoom stops short of maxZoom in controlled mode with MapLibre対応中かも @sviat-barbutsa が 33 日前に担当しました。 オープンbug
難易度 3/5 半日 初心者へのやさしさ 74/100
visgl/react-map-gl#2626 ·
-
[Bug] reuseMaps: Mapbox.reuse() infinite-loops (tab freeze) when the recycled map's container is the mount container対応中かも @mikeyfarina が 82 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
visgl/react-map-gl#2613 ·
-
feature
難易度 5/5 1週間以上 初心者へのやさしさ 42/100
visgl/react-map-gl#2603 · リアクション 1 件 ·
visgl/react-map-gl の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
platform:windows provider:antigravity-cli providers setup triaged wontfix
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
can1357/oh-my-pi#21349 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 2 日以内に返信
-
agentic-workflows
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ohcnetwork/care_fe#17474 ·
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100