Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenthoms committed Nov 26, 2024
1 parent 429feb5 commit 42a0281
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export class LabelLayer extends CompositeLayer<LabelLayerProps> {
const closestZoomLevel = zoomLevels.reduce((prev, curr) =>
Math.abs(curr - context.viewport.zoom) < Math.abs(prev - context.viewport.zoom) ? curr : prev
);
return closestZoomLevel === zoom && context.viewport.zoom <= 2;
return closestZoomLevel === zoom && context.viewport.zoom <= 2 && context.viewport.zoom > -4;
}

const reg2 = /text-single-zoom-([-\d\\.]+)/;
Expand Down

0 comments on commit 42a0281

Please sign in to comment.