Skip to content

fix(maplibre): keep controls above the overlaid MapLibreOverlay canvas - #11199

Merged
ibgreen merged 7 commits into
masterfrom
codex/maplibre-controls-overlay
Nov 20, 2026
Merged

ibgreen merged 7 commits into
masterfrom
codex/maplibre-controls-overlay

Conversation

@ibgreen

@ibgreen ibgreen commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #11198

Change List

  • Mount MapLibreOverlay overlaid canvas on the map container, below controls
  • Remove the overlay canvas and control-slot placeholder on cleanup
  • Unit tests for all four control positions and attribution hit testing
  • Documentation

The <DeckGL><Map /></DeckGL> stacking fix is in #10997.

Verified with yarn lint and 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 MapLibreOverlay canvas container directly onto the map container with zIndex: 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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T17:26:45.168460Z 2bc749c PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread modules/maplibre/src/overlay.ts Resolved
@greptile-apps

greptile-apps Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

Moves the overlaid MapLibre canvas below map controls, keeping attribution visible and clickable.

  • MapLibre controls stay above deck.gl in overlaid maps.

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

Comment thread modules/maplibre/src/overlay.ts Resolved
@ibgreen ibgreen changed the title fix(maplibre): keep attribution and controls above overlays fix: keep basemap attribution and controls above deck canvases Nov 18, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ 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.

@coveralls

coveralls commented Nov 18, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 82.501% (-0.009%) from 82.51% — codex/maplibre-controls-overlay into master

@chrisgervang

Copy link
Copy Markdown
Collaborator

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
@chrisgervang chrisgervang changed the title fix: keep basemap attribution and controls above deck canvases fix(maplibre): keep controls above the overlaid MapLibreOverlay canvas Nov 19, 2026
@ibgreen

ibgreen commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator Author

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.

@ibgreen
ibgreen added this pull request to the merge queue Nov 20, 2026
Merged via the queue into master with commit 4c0a01f Nov 20, 2026
13 of 14 checks passed
@ibgreen
ibgreen deleted the codex/maplibre-controls-overlay branch November 20, 2026 20:55

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your trial has ended. Reactivate Greptile to resume code reviews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MapLibre overlaid canvas covers attribution and controls

4 participants