Skip to content

Conversation

felixpalmer
Copy link
Collaborator

As part of visgl/deck.gl#5930 I need to find a way to construct a viewport where the field of view is not dependent on the altitude. This assumption holds for Mapbox-style view/projection matrices but not in general.

This PR extends the getBounds function to accept an optional fovy parameter which will take precedence over the altitude parameter.

@coveralls
Copy link

coveralls commented Jul 6, 2021

Coverage Status

Coverage increased (+0.009%) to 90.672% when pulling e89ea9e on felix/get-bounds-fov into 1938574 on master.

@felixpalmer felixpalmer requested a review from Pessimistress July 6, 2021 14:10
Copy link
Collaborator

@ibgreen ibgreen left a comment

Choose a reason for hiding this comment

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

docs/whats-new should be updated.

@felixpalmer felixpalmer merged commit ca3ae0e into master Jul 14, 2021
@felixpalmer felixpalmer deleted the felix/get-bounds-fov branch July 14, 2021 21:57
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.

4 participants