Skip to content

gi-nx


gi-nx / getLassoedLensedFeatures

ts
function getLassoedLensedFeatures(): Promise<(
  | MapboxLensable
| GiraffeProjectBoundary)[]>;

Prompt the user to draw a lasso and return all lensed features within the selection.

Returns

Promise<( | MapboxLensable | GiraffeProjectBoundary)[]>

Example

typescript
const lensedFeatures = await rpc.invoke("getLassoedLensedFeatures", []);
console.log(`Found ${lensedFeatures.length} lensed features in selection`);