Skip to content

Commit

Permalink
fix type issue
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Deubler <[email protected]>
  • Loading branch information
TerminalTim committed Nov 2, 2023
1 parent bdbdf13 commit 2d049d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/display/src/displays/styleTools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2d049d1

Please sign in to comment.