gi-nx / getLensedFeatureMap
ts
function getLensedFeatureMap(): Map<string,
| MapboxLensable
| GiraffeProjectBoundary>;Get all features from the currently active lens layer as a Map. The lens is a filter/style panel that can be opened on any layer.
Returns
Map<string, | MapboxLensable | GiraffeProjectBoundary>
Example
typescript
const featureMap = await rpc.invoke("getLensedFeatureMap", []);
for (const [id, feature] of featureMap) {
console.log(`Feature ${id}:`, feature.properties);
}