We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdadf98 commit 7e5ae94Copy full SHA for 7e5ae94
src/geo/transform.js
@@ -61,8 +61,8 @@ class Transform {
61
this._minZoom = minZoom || 0;
62
this._maxZoom = maxZoom || 22;
63
64
- this._minPitch = minPitch === undefined ? 0 : minPitch;
65
- this._maxPitch = maxPitch === undefined ? 60 : maxPitch;
+ this._minPitch = (minPitch === undefined || minPitch === null) ? 0 : minPitch;
+ this._maxPitch = (maxPitch === undefined || maxPitch === null) ? 60 : maxPitch;
66
67
this.setMaxBounds();
68
0 commit comments