Skip to content

Commit

Permalink
Fix of wrong tickmark sometimes. (equinor#932)
Browse files Browse the repository at this point in the history
  • Loading branch information
nilscb authored Apr 13, 2022
1 parent c9303c8 commit a08aa80
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions react/src/lib/components/DeckGLMap/layers/axes/axesLayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,7 @@ function GetTicks(
const start = Math.ceil(min / incr) * incr;
const stop = Math.floor(max / incr) * incr;
const calc_step = Math.floor(Math.abs(stop - start) / incr);
if (calc_step > 0) {
step = calc_step;
}
step = calc_step > 0 ? calc_step : 0;

const ticks: number[] = [];

Expand Down

0 comments on commit a08aa80

Please sign in to comment.