From 952def74e90ad374504fc75afbba00dfe4c8efec Mon Sep 17 00:00:00 2001 From: Chad Burt Date: Mon, 15 Apr 2024 14:26:56 -0700 Subject: [PATCH] Legend not showing Fixes #732 --- packages/client/src/dataLayers/MapContextManager.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/client/src/dataLayers/MapContextManager.ts b/packages/client/src/dataLayers/MapContextManager.ts index edf5a7ed..b547829f 100644 --- a/packages/client/src/dataLayers/MapContextManager.ts +++ b/packages/client/src/dataLayers/MapContextManager.ts @@ -2900,7 +2900,9 @@ class MapContextManager extends EventEmitter { } } - updateLegends = debounce(this._updateLegends, 20); + updateLegends = debounce(this._updateLegends, 20, { + maxWait: 1000, + }); hideLayer(stableId: string) { const state = this.visibleLayers[stableId];