From 124f092f872a7048a0ba78cea4452c4d85b1fb77 Mon Sep 17 00:00:00 2001 From: Jeff Peck Date: Tue, 27 Dec 2022 19:34:01 -0500 Subject: [PATCH] Update types for MapViewProps (#7519) --- modules/core/src/views/globe-view.ts | 4 ++-- modules/core/src/views/map-view.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/core/src/views/globe-view.ts b/modules/core/src/views/globe-view.ts index 70f908d4876..635b8eeba00 100644 --- a/modules/core/src/views/globe-view.ts +++ b/modules/core/src/views/globe-view.ts @@ -19,9 +19,9 @@ type GlobeViewProps = { /** The resolution at which to turn flat features into 3D meshes, in degrees. Smaller numbers will generate more detailed mesh. Default `10`. */ resolution?: number; /** Scaler for the near plane, 1 unit equals to the height of the viewport. Default to `0.1`. Overwrites the `near` parameter. */ - nearZMultiplier?: boolean; + nearZMultiplier?: number; /** Scaler for the far plane, 1 unit equals to the distance from the camera to the top edge of the screen. Default to `1.01`. Overwrites the `far` parameter. */ - farZMultiplier?: boolean; + farZMultiplier?: number; /** Distance of the camera relative to viewport height. Default `1.5`. */ altitude?: number; }; diff --git a/modules/core/src/views/map-view.ts b/modules/core/src/views/map-view.ts index f6b9a216d94..58f82c710af 100644 --- a/modules/core/src/views/map-view.ts +++ b/modules/core/src/views/map-view.ts @@ -29,9 +29,9 @@ type MapViewProps = { /** Whether to render multiple copies of the map at low zoom levels. Default `false`. */ repeat?: boolean; /** Scaler for the near plane, 1 unit equals to the height of the viewport. Default to `0.1`. Overwrites the `near` parameter. */ - nearZMultiplier?: boolean; + nearZMultiplier?: number; /** Scaler for the far plane, 1 unit equals to the distance from the camera to the top edge of the screen. Default to `1.01`. Overwrites the `far` parameter. */ - farZMultiplier?: boolean; + farZMultiplier?: number; /** Custom projection matrix */ projectionMatrix?: NumericArray; /** Field of view covered by the camera, in the perspective case. In degrees. If not supplied, will be calculated from `altitude`. */