Skip to content

fix(mapbox): Fix view selection logic in getViewport - #9688

Merged
chrisgervang merged 7 commits into
masterfrom
chr/mapbox-user-views
Jul 14, 2025
Merged

chrisgervang merged 7 commits into
masterfrom
chr/mapbox-user-views

Conversation

@chrisgervang

Copy link
Copy Markdown
Collaborator

Closes #9664

Change List

  • Updates getViewport to select the 'mapbox' view from deck.props.views if available, falling back to getDefaultView.

Updates getViewport to select the 'mapbox' view from deck.props.views if available, falling back to getDefaultView.
@coveralls

coveralls commented Jul 1, 2025 •

Copy link
Copy Markdown

Coverage Status

coverage: 91.679% (+0.001%) from 91.678%
when pulling 94fb35b on chr/mapbox-user-views
into 87883cd on master.

Comment thread modules/mapbox/src/deck-utils.ts Resolved
Comment thread modules/mapbox/src/deck-utils.ts Resolved
const {
props: {views}
} = deck;
const view =

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is it time to define a getView() function and place this logic there rather than hide in here?

Comment thread modules/mapbox/src/deck-utils.ts Resolved
@ibgreen ibgreen added this to the v9.2 milestone Jul 13, 2025
chrisgervang and others added 4 commits July 13, 2025 10:58
Co-authored-by: Ib Green <[email protected]>
Introduced MAPBOX_VIEW_ID constant to replace hardcoded 'mapbox' strings for view IDs
@chrisgervang chrisgervang mentioned this pull request Jul 14, 2025
@chrisgervang
chrisgervang merged commit a1f5321 into master Jul 14, 2025
@chrisgervang
chrisgervang deleted the chr/mapbox-user-views branch July 14, 2025 22:06
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.

[Bug] Unable to override default view in MapboxOverlay

4 participants