Skip to content

Commit b097e9a

Browse files
committed
make area selection box visibile regardless of mode
1 parent 0778ebf commit b097e9a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

components/Map.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,14 +377,15 @@ const Map: React.FC<MapProps> = ({ bbox, onBBoxChange, route, hoveredPoint, stra
377377
<EraserTool route={route} onRouteUpdate={onRouteUpdate} />
378378
)}
379379

380-
{/* Visible Selection Rectangles - hide when route is present unless in selection mode */}
381-
{(isSelectionMode || !route) && selectionBoxes.map((box, idx) => (
380+
{/* Visible Selection Rectangles - Always visible once selected */}
381+
{selectionBoxes.map((box, idx) => (
382382
<Rectangle
383383
key={`selection-box-${idx}`}
384384
bounds={[
385385
[box.south, box.west],
386386
[box.north, box.east]
387387
]}
388+
interactive={false}
388389
pathOptions={{
389390
color: '#F59E0B',
390391
weight: 2,
@@ -402,6 +403,7 @@ const Map: React.FC<MapProps> = ({ bbox, onBBoxChange, route, hoveredPoint, stra
402403
[drawingBox.south, drawingBox.west],
403404
[drawingBox.north, drawingBox.east]
404405
]}
406+
interactive={false}
405407
pathOptions={{
406408
color: '#F59E0B',
407409
weight: 2,

0 commit comments

Comments
 (0)