Skip to content

feat: fit and constrain the camera on a pitched map - #2285

Open
greensopinion wants to merge 1 commit into
pitch-2-gesturesfrom
pitch-3-fit-and-constraints
Open

greensopinion wants to merge 1 commit into
pitch-2-gesturesfrom
pitch-3-fit-and-constraints

Conversation

@greensopinion

Copy link
Copy Markdown
Collaborator

Camera fits now account for pitch. The contain constraints, which
#2283 broke on pitched maps, ignore pitch again, as in MapLibre GL JS,
so they no longer refuse pitch changes. At pitch 0, fits and constraints
behave as before.

Depends on #2282.

I wrote this with Claude Code (Claude Opus 5.5). I directed the design,
reviewed the code, and tested it on a Mac, an iPhone 13, an iPhone 15 Pro
Max, a Pixel 4a (5G), and in Chrome.

Camera fits now account for pitch. The contain constraints, which
04c3e14 broke on pitched maps, ignore pitch again, as in MapLibre GL JS,
so they no longer refuse pitch changes. At pitch 0, fits and constraints
behave as before.

This branch has not been deployed

No deployments
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.

1 participant