Skip to content

gi-nx


gi-nx / getQueriedFeature

ts
function getQueriedFeature(): 
  | RawPoint
  | RawMultiPoint
  | RawLineString
  | RawMultiLineString
  | RawPolygon
  | RawMultiPolygon
  | MapboxLensable
  | GiraffeProjectBoundary;

Get the feature currently under the user's mouse cursor (hovered) or last clicked.

Returns

| RawPoint | RawMultiPoint | RawLineString | RawMultiLineString | RawPolygon | RawMultiPolygon | MapboxLensable | GiraffeProjectBoundary