Repository navigation
fix(maplibre): keep controls above the overlaid MapLibreOverlay canvas - #11199
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2bc749c218
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
[Medium impact] The PR appears safe to merge. SummaryMoves the overlaid MapLibre canvas below map controls, keeping attribution visible and clickable.
No new actionable issues found. The previously reported field documentation is present. Reviews (6) · Last reviewed commit: "Merge branch 'master' into codex/maplibr..." · Reviewed by Greptile |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 813beff. Configure here.
|
The before/after photos don't show the fix |
Drop the react-map-gl change and its test. deck.gl should not reach into react-map-gl's DOM; the React stacking fix is in #10997. Also remove the before/after screenshots from dev-docs. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LGNhMqFS7mGJ9M1FLcwfC6
|
The earlier screenshots did not demonstrate the MapLibreOverlay fix. I removed them from the PR description. The current regression test uses a real MapLibre map and checks all four control positions. It verifies that the deck canvas container sits below the control corners and uses browser hit testing to confirm attribution remains reachable. |
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.

Closes #11198
Change List
MapLibreOverlayoverlaid canvas on the map container, below controlsThe
<DeckGL><Map /></DeckGL>stacking fix is in #10997.Verified with
yarn lintand the MapLibre (31) and React (25) headless test suites.Note
Low Risk
Targeted DOM hierarchy and styling change scoped to MapLibre overlaid mode, accompanied by comprehensive control-position test coverage.
Overview
Mounts the overlaid
MapLibreOverlaycanvas container directly onto the map container withzIndex: 1, rather than inside MapLibre's control corner slots. An empty placeholder element is returned to MapLibre's control slot system, and both elements are cleaned up upon overlay removal.This ensures basemap attribution and navigation controls remain visible, interactive, and correctly stacked above the deck.gl canvas regardless of control position.
Updates documentation to describe the overlaid stacking order and adds tests verifying control z-index and click hit testing across all four control corners.
Reviewed by Cursor Bugbot for commit 841ec2f. Bugbot is set up for automated code reviews on this repo. Configure here.