Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Pessimistress committed Sep 5, 2024
1 parent 20855c1 commit 76bc058
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions modules/aggregation-layers/src/contour-layer/contour-layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ export default class GridLayer<DataT = any, ExtraPropsT extends {} = {}> extends
getBinId: (p: number[]) => {
const positionCommon = viewport.projectFlat(p);
return [
(positionCommon[0] - cellOriginCommon[0]) / cellSizeCommon[0],
(positionCommon[1] - cellOriginCommon[1]) / cellSizeCommon[1]
Math.floor((positionCommon[0] - cellOriginCommon[0]) / cellSizeCommon[0]),
Math.floor((positionCommon[1] - cellOriginCommon[1]) / cellSizeCommon[1])
];
}
});
Expand Down
4 changes: 2 additions & 2 deletions modules/aggregation-layers/src/grid-layer/grid-layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -477,8 +477,8 @@ export default class GridLayer<DataT = any, ExtraPropsT extends {} = {}> extends
getBinId: (p: number[]) => {
const positionCommon = viewport.projectFlat(p);
return [
(positionCommon[0] - cellOriginCommon[0]) / cellSizeCommon[0],
(positionCommon[1] - cellOriginCommon[1]) / cellSizeCommon[1]
Math.floor((positionCommon[0] - cellOriginCommon[0]) / cellSizeCommon[0]),
Math.floor((positionCommon[1] - cellOriginCommon[1]) / cellSizeCommon[1])
];
}
});
Expand Down

0 comments on commit 76bc058

Please sign in to comment.