800c45916e
Rectangle mode (Dreptunghi): - Mousedown starts drawing, mousemove shows amber overlay, mouseup selects - All terenuri features in the drawn bbox are added to selection - Map panning disabled during draw, re-enabled after - Minimum 5px size to prevent accidental micro-selections Freehand mode (Desen): - Each click adds a point, polygon drawn with GeoJSON source - Double-click closes polygon, selects features whose centroid is inside - Ray-casting point-in-polygon algorithm for spatial filtering - Double-click zoom disabled during freehand mode Draw state clears when switching selection modes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>