fix(street-level): a click picks in a 9 px window, so a thin line is hit a few pixels off

Coverage lines are 2.5 px wide and there is no hover cue any more: with the
default 3 px pick window a click just beside a line selected nothing.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
German KhokhlovandClaude Fable 5.1 committed 2026-10-13 13:53:54 +04:00
1 parent 361f1c0fb8
commit e2f9952867
2 files changed
+12 -2

No files matched your search

+6
View File
@@ -13,6 +13,12 @@ export const MAPILLARY_SOURCE_METHODS = Object.freeze([
'getSequenceImages',
]);
/**
* The pixel window a click picks in: coverage lines are 2.5 px wide and there
* is no hover cue, so a click a few pixels off still finds the line.
*/
export const CLICK_PICK_WINDOW_PX = 9;
/** Pick id of the viewer position marker. */
export const POSITION_PICK_ID = 'sl:pos';