Repository navigation
Revert "fix(core): rotate GlobeView like a ball through poles (#10598)" - #10713
Conversation
This reverts commit 93f0fe0. Restore the original north-up globe navigation while alternative navigation modes await maintainer consensus. Preserve subsequent release-note changes.
|
| if (props.longitude < -180 || props.longitude > 180) { | ||
| props.longitude = mod(props.longitude + 180, 360) - 180; | ||
| } | ||
| props.latitude = clamp(props.latitude, -90, 90); |
There was a problem hiding this comment.
Bounds restore invalid latitudes
When maxBounds extends beyond a pole, such as [[-10, 95], [10, 100]], this clamp runs before bounds processing, so the later bounds clamp can set latitude above 90. The controller then stores and emits an invalid latitude and uses it in subsequent bounds and zoom calculations. Keep the [-90, 90] clamp after applying maxBounds.
There was a problem hiding this comment.
If this is a real bug, let's address in a follow up and keep the revert PR pure
There was a problem hiding this comment.
Agreed. This is a bounds-edge-case issue in the restored path, not something to expand this revert PR to address. Keeping the revert pure is preferable; please handle the post-maxBounds latitude clamp in a follow-up.
| @@ -548,316 +496,6 @@ test('GlobeController falls back to center zoom when the pointer is off the glob | |||
| expect(controller.props.zoom, 'off-globe zoom still changes scale').not.toBeCloseTo(1); | |||
There was a problem hiding this comment.
Restored navigation lacks coverage
This removes the pole, locked-bearing, and nonzero-bearing interaction tests while restoring separate north-up drag and inertia branches. The remaining tests do not exercise the polar clamp or either inertia path, so regressions in the navigation behavior this PR restores could pass CI. Please retain focused coverage for north-up polar dragging, locked-bearing inertia, and free rotation after a bearing change.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
There was a problem hiding this comment.
Keep the revert pure, and then follow up with additional coverage
There was a problem hiding this comment.
Agreed—the pure-revert constraint is reasonable here. The focused navigation coverage should be added in a follow-up, so I won’t block this PR on those tests.
Integrate #10713 and the current upstream baseline without rewriting the existing #10650 commits. Preserve the reviewed map/ball implementation and regression coverage, with ball navigation explicitly opt-in. Clarify the migration from implicit free rotation and preserve the upstream bearing/pitch release note.
|
@copilot resolve the merge conflicts in this pull request |
…lobe # Conflicts: # docs/whats-new.md Co-authored-by: charlieforward9 <[email protected]>
Resolved by merging |
Resolve conflicts with the visgl#10713 revert: the getZoomAnchorStrength call now lives in GlobeController.getZoomPosition, so guard it there.
…" (#10713) This reverts commit 93f0fe0. Restore the original north-up globe navigation while alternative navigation modes await maintainer consensus. Preserve subsequent release-note changes. Co-authored-by: copilot-swe-agent[bot] <[email protected]> (cherry picked from commit c62e58e)
|
Released in deck.gl 9.4.1. Thanks @charlieforward9! |
Goal
Restore the original north-up globe navigation while changes to the default interaction model await maintainer consensus.
This reverts #10598 (commit
93f0fe01df54aadd5eb17289a21cd46470f05e30), following Felix's feedback on north-up behavior, his feedback on the existing bearing-lock implementation, and the request to revert the premature merge.Changes
All affected files other than the release notes match the parent of #10598 exactly.
Validation
yarn lint— passed.yarn test-fast— passed; 19 Node tests.yarn test-headless --maxWorkers=1 test/modules/core/controllers test/modules/core/viewports test/modules/core/lib/view-manager.spec.ts— passed; 125 tests across 10 files.yarn test-website— passed, including the package/type/declaration builds and website/gallery builds. Non-blocking warning for the unchanged/docs/TEST-STATUS#codemod-buggy-transformationsanchor.git diff --check— passed. No dependency or lockfile changes.The exact Playwright browser was installed with Node 24 into the isolated worktree after the Node 26 installer stalled. The focused browser suite used that installation with the unchanged test configuration. The full headless/render suites were not run.