You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Streamlined rectangle drag-to-filter for map layers (#3402)
* feat: streamlined rectangle selection for filtering map layers
Improve the "Draw on Map" rectangle selection UX with a smoother
click-and-drag workflow that automatically filters all visible layers.
- Default to "Draw Rectangle" mode when toggling on "Draw on Map"
- Enable drag-to-draw for rectangles (click-hold-drag-release)
- Auto-apply polygon filter to all visible layers on rectangle completion
- Switch to edit/move mode after drawing so users can reposition
- Update tooltip to reflect new drag interaction
- Preserve original click-to-draw behavior for polygon drawing
Made-with: Cursor
* feat: support both click-move-click and drag-to-draw for rectangle selection
Add DrawRectangleModeExtended that removes the mutually exclusive
dragToDraw guards so both gestures work: existing users can still
click-move-click while new users can click-drag-release.
Made-with: Cursor
* feat: enhance polygon filter functionality with layer visibility support
Updated the setPolygonFilterAllLayersUpdater function to allow filtering based on visible layer IDs. This change improves the flexibility of the polygon filter by enabling it to utilize a provided list of visible layers, falling back to the existing visible layers in the state if the list is not available.
- Changed variable declaration from 'let' to 'const' for newState.
- Introduced a check for visibleLayerIds to streamline layer filtering.
0 commit comments