Repository navigation
mapbox-overlay: synchronize camera before onLoad callback - #10735
Merged
chrisgervang merged 5 commits intoOct 11, 2026
Merged
Conversation
|
chrisgervang
approved these changes
Sep 30, 2026
53 of 66 tasks
chrisgervang
added a commit
that referenced
this pull request
Oct 22, 2026
* mapbox-overlay: synchronize camera before onLoad callback * test(mapbox): clean up overlay in finally --------- Co-authored-by: Chris Gervang <[email protected]> Co-authored-by: Chris Gervang <[email protected]> (cherry picked from commit f0686c2)
Collaborator
|
Released in deck.gl 9.4.1. Thanks @kahole! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mirror of
deck.gl/maplibrefix #10702 fordeck.gl/mapboxNote
Low Risk
Startup ordering fix for interleaved Mapbox overlay view state; scoped to Deck init path with a regression test.
Overview
Fixes interleaved MapboxOverlay startup so Deck’s view state matches the map when
onLoadruns.For a not-yet-initialized Deck, the custom
onLoadnow callsonMapMoveafterwatchMapMoveand before the user’sonLoad, so camera updates between adding the control and Deck init are applied once. UseronLoadstill runs after that sync (same pattern as the maplibre fix).Adds a WebGL test that moves the map before load and asserts view state at
onLoad, including a zoom change triggered insideonLoad.Reviewed by Cursor Bugbot for commit 7c1368f. Bugbot is set up for automated code reviews on this repo. Configure here.