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.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix inflated map.getBounds due to horizonShift and edge of map #10909
Fix inflated map.getBounds due to horizonShift and edge of map #10909
Changes from 6 commits
6c260fb
c08af0d
4d363ed
d86332b
9b09f4b
6f35147
1795366
8affd1b
d411b08
8f667dd
b5f76f4
4d594ea
c036fc5
c9c02d9
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any chance part of this code could be shared between
_getBounds3D
andgetBounds
? There seem to be some potential for compressing that a bit (The only difference I noticed is on thez
value ofpointCoordinate
).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Nice early exit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to have a test for
_getBounds3D
with transform isolated, but it requireselevation.visibleDemTiles
. Perhaps we could create a mock for that?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that should work by mocking it in such a way that you get a valid
minmax
value, as it's the only dependency onelevation
in this method.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm leaning toward pushing these tests to the future given the tests with
map
seem to cover the function pretty well, and this seems less urgent than the other tasks on my plate. But if you think this is important I'd be happy to look into it.