Repository navigation
fix(jupyter-widget): MapLibre overlay setProps no longer recurses - #10768
Merged
Merged
Conversation
|
chrisgervang
force-pushed
the
chr/jupyter-widget-maplibre-setprops
branch
from
September 29, 2026 16:10
4d6427e to
2f2aa93
Compare
ibgreen
approved these changes
Sep 30, 2026
… mocking maplibre-gl Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01GoghM5SYvzaConbutwAw21
53 of 66 tasks
chrisgervang
added a commit
that referenced
this pull request
Oct 22, 2026
…0768) * fix(jupyter-widget): MapLibre overlay setProps no longer recurses * test(jupyter-widget): exercise the MapLibre setProps override without mocking maplibre-gl Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01GoghM5SYvzaConbutwAw21 --------- Co-authored-by: Claude <[email protected]> (cherry picked from commit 295811d)
This was referenced Oct 26, 2026
Collaborator
Author
|
Released in deck.gl 9.4.1 as |
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.
Background
With
map_provider="maplibre", the jupyter-widget replaces the overlay'ssetPropsso that updates only change layers. The replacement callsdeckOverlay.setPropson itself, so the first update from the notebook (e.g.deck.update()) throwsRangeError: Maximum call stack size exceededand the map never changes.Change List
overlay-utils.js:forwardLayerUpdateskeeps a bound reference to the originalMapLibreOverlay.setPropsand forwards onlylayersmaplibre-utils.js: install the override throughforwardLayerUpdatesMapLibreOverlaywithout a map and check that layer updates are forwarded and other props are not. The test creates no map and mocks nothing, since amaplibre-glmock in the shared headless page broke theScreenGridLayerspec that runs after it in CIVerified with the jupyter-widget headless specs together with the screen-grid spec, and
yarn lint.