Working with selection
Selecting Features
await felt.selectFeature({
id: "feature-123",
layerId: "buildings-layer"
});await felt.selectFeature({
id: "feature-123",
layerId: "buildings-layer",
showPopup: false, // Whether to show the feature popup (default: true)
fitViewport: { maxZoom: 15 } // Fit viewport to feature with zoom limit
});Reading selection
Clearing Selection
Reacting to selection changes
Best practices
Last updated
Was this helpful?