From 8ad14cafcfcd697c9fdeac76500899e7f612d6bb Mon Sep 17 00:00:00 2001 From: Xiaoji Chen Date: Sun, 18 Jun 2023 18:39:56 -0700 Subject: [PATCH] Restore fog, light and terrain types on MapProps (#2206) --- src/mapbox/mapbox.ts | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/src/mapbox/mapbox.ts b/src/mapbox/mapbox.ts index 758eb772..56d8a139 100644 --- a/src/mapbox/mapbox.ts +++ b/src/mapbox/mapbox.ts @@ -63,6 +63,14 @@ export type MapboxProps = Partial { @param {object} currProps @returns {bool} true if anything is changed */ - _updateStyleComponents( - nextProps: MapboxProps & { - light?: Light; - fog?: Fog; - terrain?: Terrain; - }, - currProps: MapboxProps & { - light?: Light; - fog?: Fog; - terrain?: Terrain; - } - ): boolean { + _updateStyleComponents(nextProps: MapboxProps, currProps: MapboxProps): boolean { const map = this._map; let changed = false; if (map.isStyleLoaded()) {