spatial-monorepo / ui/src / useFeatureClick
Function: useFeatureClick()
useFeatureClick(
map,layerIds):UseFeatureClickResult
Defined in: packages/ui/src/FeaturePopup.tsx:37
Attaches per-layer click handlers to a MapLibre map and surfaces the clicked GeoJSON feature with its lngLat. Handlers are removed on unmount or when the map / layer list changes.
Parameters
map
Map$1 | null | undefined
layerIds
string[]
