Skip to content

Commit

Permalink
fix test about maxpitch
Browse files Browse the repository at this point in the history
  • Loading branch information
Debian committed Jan 12, 2021
1 parent f063492 commit 8804495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/ui/map.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ test('Map', (t) => {

t.test('#getMaxPitch', (t) => {
const map = createMap(t, {pitch: 0});
t.equal(map.getMaxPitch(), 60, 'returns default value');
t.equal(map.getMaxPitch(), 85, 'returns default value');
map.setMaxPitch(10);
t.equal(map.getMaxPitch(), 10, 'returns custom value');
t.end();
Expand Down

2 comments on commit 8804495

@selimachour
Copy link

Choose a reason for hiding this comment

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

I thought mapbox took a long time to change 60 to 85 because viewing at 85 degrees would yield to too many tiles being rendered at so they had to fix that issue before ...

@clement-igonet
Copy link

@clement-igonet clement-igonet commented on 8804495 Jan 13, 2021 via email

Choose a reason for hiding this comment

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

Please sign in to comment.