From 7e5ae940e2f43364320e449884e942b1dc8ad7ee Mon Sep 17 00:00:00 2001 From: Andrew Harvey Date: Fri, 11 Oct 2019 18:08:46 +1100 Subject: [PATCH] flow is very picky --- src/geo/transform.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/geo/transform.js b/src/geo/transform.js index f1687509188..25fe5c948a8 100644 --- a/src/geo/transform.js +++ b/src/geo/transform.js @@ -61,8 +61,8 @@ class Transform { this._minZoom = minZoom || 0; this._maxZoom = maxZoom || 22; - this._minPitch = minPitch === undefined ? 0 : minPitch; - this._maxPitch = maxPitch === undefined ? 60 : maxPitch; + this._minPitch = (minPitch === undefined || minPitch === null) ? 0 : minPitch; + this._maxPitch = (maxPitch === undefined || maxPitch === null) ? 60 : maxPitch; this.setMaxBounds();