地図:映す範囲の見張りがすり抜ける・パン中に描き直しが多い
Maintainers usually reply within 12 days
@wac9993 is already working on this.
Since Sep 30, 2026.
Assessment
This issue has not been assessed yet.
Description
1. 映す範囲の見張りがすり抜ける(確度は中)
MapView.tsx:222-240 の applyingRef は setTimeout(0) で解けます。ところが fitBounds がアニメーションすると(ズームやパンが変わるときは既定でアニメーションする)、moveend は約 250ms 後に届くので、見張りが効きません。
- 地図が 1 枚なら、ズームのスナップ分を 1 回報告して落ち着く
- 大きさの違う地図の泡を 2 枚同時に開くと、store の
boundsを共有しているので A→B→A と fitBounds し合い、互いを包もうとして引いていく(最悪 minZoom まで)。窓と海に 1 枚ずつ置ける 5ca0bb23 以降は踏みうる
案:moveend を受けたときに「自分が当てた範囲か」を範囲の値で見る。または fitBounds を animate: false にする。
2. 性能
- MapBubble.tsx:74-105 の
handedPins:インラインのセレクタが毎回新しい MapPin を作るので、shallowEqualが常に不一致になる。何かが渡されているあいだはどの action でも描き直し、routeIdsも作り直されて polyline が毎回張り直される。パンのたびに setBounds が出るので、パン中はずっとこの状態 - MapView.tsx:190:
moveのたびに setBeat して、全ピン(越後を全景で見ると約 800 個の ObjectView)を毎フレーム描き直す。引いた状態でのパンが重いはず
3. url を手で組み立てている(いまの影響は小さい)
MapBubble.tsx:99 は url を ${type.toLowerCase()}s/${id} で組み立てています。Activity なら activitys/、ItineraryItem なら itineraryitems/ になり、registerObjectUrl と一致しません。ObjectView は url を省けば registerObjectUrl から引くので、手で組み立てる必要はありません。
4. 註が古い
MapView.tsx:383 の CSS の註が「OpenStreetMap の決まり」のままです(地理院タイルの出典表記そのものは :86-90 と :168 で守られています)。
- Dominant language
- TypeScript
- Stars
- 1
- Forks
- 0
- Avg merge
- 9d 13h
- Merged PRs (30d)
- 10
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from fumicode/bublys-org
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
fumicode/bublys-org#261 ·
Maintainers usually reply within 12 days
-
enhancement Shiftonton
Difficulty 5/5 Over a week Newbie friendliness 15/100
fumicode/bublys-org#259 ·
Maintainers usually reply within 12 days
-
enhancement Shiftonton
Difficulty 3/5 1-2 days Newbie friendliness 42/100
fumicode/bublys-org#258 ·
Maintainers usually reply within 12 days
-
enhancement Shiftonton
Difficulty 4/5 3-5 days Newbie friendliness 25/100
fumicode/bublys-org#257 ·
Maintainers usually reply within 12 days
-
enhancement Shiftonton
Difficulty 4/5 3-5 days Newbie friendliness 55/100
fumicode/bublys-org#256 ·
Maintainers usually reply within 12 days
All issues in fumicode/bublys-org
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 66/100
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
prometheus/docs#3198 ·
Maintainers usually reply within 3 days
-
[Bug]: OpenCode v2 skips an assistant message that gains text after an earlier capturePossibly taken @jianyx1 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
volcengine/OpenViking#8354 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ARTPARK-SAHAI-ORG/calibrate-frontend#842 ·
Maintainers usually reply within 1 day
-
Chat: Copying a selection that includes the end of a message also copies the actions menu labelsOpen
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
suitenumerique/hub#176 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day