Skip to content

Commit

Permalink
fix(frontend): onClick types for feature selection (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
eatyourgreens authored Jan 24, 2025
1 parent 630e528 commit c24043b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/lib/state/interactions/use-interactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
allowedGroupLayersState,
} from './interaction-state';
import { RecoilStateFamily } from 'lib/recoil/types';
import { PickingInfo } from 'deck.gl/typed';

function processRasterTarget(info: any): RasterTarget {
const { bitmap, sourceLayer } = info;
Expand Down Expand Up @@ -156,7 +157,7 @@ export function useInteractions(
setHoverXY([x, y]);
};

const onClick = (info: any, deck: DeckGL) => {
const onClick = (info: PickingInfo, deck: DeckGL) => {
const { x, y } = info;
const viewLayerLookup = (id: string) => viewLayers.find((x) => x.id === id);

Expand Down

0 comments on commit c24043b

Please sign in to comment.