From 2d049d1e877586b93383c00a926ff4961c8178c2 Mon Sep 17 00:00:00 2001 From: Tim Deubler Date: Thu, 2 Nov 2023 12:47:59 +0100 Subject: [PATCH] fix type issue Signed-off-by: Tim Deubler --- packages/display/src/displays/styleTools.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/display/src/displays/styleTools.ts b/packages/display/src/displays/styleTools.ts index 035d7e18d..35ebb1820 100644 --- a/packages/display/src/displays/styleTools.ts +++ b/packages/display/src/displays/styleTools.ts @@ -500,7 +500,7 @@ const searchLerp = (map, search: number, parseSize: boolean = true) => { export const fillMap = (searchMap, parseSizeValue: boolean, map = {}) => { let fixedZoomMap = {}; for (let zoom in searchMap) { - fixedZoomMap[Math.round(zoom)] = searchMap[zoom]; + fixedZoomMap[Math.round(Number(zoom))] = searchMap[zoom]; } for (let zoom = 1; zoom <= 20; zoom++) { map[zoom] = searchLerp(fixedZoomMap, zoom, parseSizeValue);